home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume28 / fromwho / patch01 / fromwho.patch
Encoding:
Text File  |  1994-07-23  |  43.7 KB  |  1,472 lines

  1. diff -c fromwho.old/configure fromwho/configure
  2. *** fromwho.old/configure    Sun Jul 24 00:38:07 1994
  3. --- fromwho/configure    Sun Jul 24 00:34:50 1994
  4. ***************
  5. *** 1,145 ****
  6. - echo ""
  7. - echo "Checking your system configuration..."
  8. - echo ""
  9.   #!/bin/sh
  10.   # Guess values for system-dependent variables and create Makefiles.
  11. ! # Generated automatically using autoconf.
  12. ! # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  13.   
  14. ! # This program is free software; you can redistribute it and/or modify
  15. ! # it under the terms of the GNU General Public License as published by
  16. ! # the Free Software Foundation; either version 2, or (at your option)
  17.   # any later version.
  18.   
  19. ! # This program is distributed in the hope that it will be useful,
  20. ! # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  22. ! # GNU General Public License for more details.
  23.   
  24.   # You should have received a copy of the GNU General Public License
  25.   # along with this program; if not, write to the Free Software
  26.   # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  27.   
  28. ! # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp] [--no-create]
  29. ! #        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE] [TARGET]
  30. ! # Ignores all args except --srcdir, --prefix, --exec-prefix, --no-create, and
  31. ! # --with-PACKAGE unless this script has special code to handle it.
  32.   
  33.   
  34. ! for arg
  35.   do
  36. !   # Handle --exec-prefix with a space before the argument.
  37. !   if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  38. !   # Handle --host with a space before the argument.
  39. !   elif test x$next_host = xyes; then next_host=
  40. !   # Handle --prefix with a space before the argument.
  41. !   elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  42. !   # Handle --srcdir with a space before the argument.
  43. !   elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  44. !   else
  45. !     case $arg in
  46. !      # For backward compatibility, also recognize exact --exec_prefix.
  47. !      -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  48. !     exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  49. !      -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  50. !     next_exec_prefix=yes ;;
  51. !      -gas | --gas | --ga | --g) ;;
  52. !      -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  53. !      -host | --host | --hos | --ho | --h)
  54. !     next_host=yes ;;
  55. !      -nfp | --nfp | --nf) ;;
  56. !      -no-create | --no-create | --no-creat | --no-crea | --no-cre | --no-cr | --no-c | --no- | --no)
  57. !         no_create=1 ;;
  58. !      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  59. !     prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  60. !      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  61. !     next_prefix=yes ;;
  62. !      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  63. !     srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  64. !      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  65. !     next_srcdir=yes ;;
  66. !      -with-* | --with-*)
  67. !        package=`echo $arg|sed 's/-*with-//'`
  68. !        # Delete all the valid chars; see if any are left.
  69. !        if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then
  70. !          echo "configure: $package: invalid package name" >&2; exit 1
  71. !        fi
  72. !        eval "with_`echo $package|sed s/-/_/g`=1" ;;
  73.   
  74. !      -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
  75. !        verbose=yes ;;
  76.   
  77. !      *) ;;
  78.       esac
  79. !   fi
  80. ! done
  81.   
  82. ! trap 'rm -f conftest* core; exit 1' 1 3 15
  83.   
  84. ! # Needed for some versions of `tr' so that character classes in `[]' work.
  85. ! if test "${LANG+set}" = "set" ; then
  86. !    LANG=C
  87.   fi
  88.   
  89. ! rm -f conftest*
  90. ! compile='${CC-cc} $CFLAGS $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  91.   
  92.   # A filename unique to this package, relative to the directory that
  93.   # configure is in, which we can look for to find out if srcdir is correct.
  94. ! unique_file=test.mmdf.uu
  95.   
  96.   # Find the source files, if location was not specified.
  97.   if test -z "$srcdir"; then
  98. !   srcdirdefaulted=yes
  99.     # Try the directory containing this script, then `..'.
  100. !   prog=$0
  101. !   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  102. !   test "X$confdir" = "X$prog" && confdir=.
  103. !   srcdir=$confdir
  104. !   if test ! -r $srcdir/$unique_file; then
  105.       srcdir=..
  106.     fi
  107.   fi
  108. ! if test ! -r $srcdir/$unique_file; then
  109. !   if test x$srcdirdefaulted = xyes; then
  110. !     echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  111.     else
  112. !     echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  113.     fi
  114. -   exit 1
  115.   fi
  116. ! # Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  117. ! # But we can't avoid them for `..', to make subdirectories work.
  118. ! case $srcdir in
  119. !   .|/*|~*) ;;
  120. !   *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  121. ! esac
  122.   
  123.   if test -z "$CC"; then
  124.     # Extract the first word of `gcc', so it can be a program name with args.
  125. !   set dummy gcc; word=$2
  126. !   echo checking for $word
  127. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  128. !   for dir in $PATH; do
  129. !     test -z "$dir" && dir=.
  130. !     if test -f $dir/$word; then
  131.         CC="gcc"
  132.         break
  133.       fi
  134.     done
  135. !   IFS="$saveifs"
  136.   fi
  137.   test -z "$CC" && CC="cc"
  138. ! test -n "$CC" -a -n "$verbose" && echo "    setting CC to $CC"
  139.   
  140.   # Find out if we are using GNU C, under whatever name.
  141.   cat > conftest.c <<EOF
  142. --- 1,342 ----
  143.   #!/bin/sh
  144.   # Guess values for system-dependent variables and create Makefiles.
  145. ! # Generated automatically using autoconf version 1.11 
  146. ! # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  147.   
  148. ! # This configure script is free software; you can redistribute it and/or
  149. ! # modify it under the terms of the GNU General Public License as published
  150. ! # by the Free Software Foundation; either version 2, or (at your option)
  151.   # any later version.
  152.   
  153. ! # This script is distributed in the hope that it will be useful, but
  154. ! # WITHOUT ANY WARRANTY; without even the implied warranty of
  155. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  156. ! # Public License for more details.
  157.   
  158.   # You should have received a copy of the GNU General Public License
  159.   # along with this program; if not, write to the Free Software
  160.   # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  161.   
  162. ! # Save the original args to write them into config.status later.
  163. ! configure_args="$*"
  164.   
  165. + # Only options that might do something get documented.
  166. + ac_usage="Usage: configure [options] [host]
  167. + Options: [defaults in brackets after descriptions]
  168. + --build=BUILD        configure for building on BUILD [BUILD=HOST]
  169. + --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  170. + --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  171. + --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  172. + --help            print this message
  173. + --host=HOST        configure for HOST [guessed]
  174. + --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  175. + --quiet, --silent    do not print \`checking for...' messages
  176. + --srcdir=DIR        find the sources in DIR [configure dir or ..]
  177. + --target=TARGET        configure for TARGET [TARGET=HOST]
  178. + --verbose        print results of checks
  179. + --version        print the version of autoconf that created configure
  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. + # Initialize some variables set by options.
  185. + # The variables have the same names as the options, with
  186. + # dashes changed to underlines.
  187. + build=NONE
  188. + exec_prefix=
  189. + host=NONE
  190. + no_create=
  191. + nonopt=NONE
  192. + norecursion=
  193. + prefix=
  194. + program_prefix=
  195. + program_suffix=
  196. + program_transform_name=
  197. + silent=
  198. + srcdir=
  199. + target=NONE
  200. + verbose=
  201. + x_includes=
  202. + x_libraries=
  203.   
  204. ! ac_prev=
  205. ! for ac_option
  206.   do
  207. !   # If the previous option needs an argument, assign it.
  208. !   if test -n "$ac_prev"; then
  209. !     eval "$ac_prev=\$ac_option"
  210. !     ac_prev=
  211. !     continue
  212. !   fi
  213. !   # Accept (but ignore some of) the important Cygnus configure
  214. !   # options, so we can diagnose typos.
  215.   
  216. !   case "$ac_option" in
  217. !   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  218. !   *) ac_optarg= ;;
  219. !   esac
  220. !   case "$ac_option" in
  221. !   -build | --build | --buil | --bui | --bu | --b)
  222. !     ac_prev=build ;;
  223. !   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  224. !     build="$ac_optarg" ;;
  225. !   -disable-* | --disable-*)
  226. !     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  227. !     # Reject names that aren't valid shell variable names.
  228. !     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  229. !       echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  230. !     fi
  231. !     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  232. !     eval "enable_${ac_feature}=no" ;;
  233.   
  234. !   -enable-* | --enable-*)
  235. !     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  236. !     # Reject names that aren't valid shell variable names.
  237. !     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  238. !       echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  239. !     fi
  240. !     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  241. !     case "$ac_option" in
  242. !       *=*) ;;
  243. !       *) ac_optarg=yes ;;
  244.       esac
  245. !     eval "enable_${ac_feature}='$ac_optarg'" ;;
  246. !   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  247. !   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  248. !   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  249. !   | --exec | --exe | --ex)
  250. !     ac_prev=exec_prefix ;;
  251. !   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  252. !   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  253. !   | --exec=* | --exe=* | --ex=*)
  254. !     exec_prefix="$ac_optarg" ;;
  255. !   -gas | --gas | --ga | --g)
  256. !     with_gas=yes ;; # Obsolete; use --with-gas.
  257. !   -help | --help | --hel | --he)
  258. !     cat << EOF
  259. ! $ac_usage
  260. ! EOF
  261. !     exit 0 ;;
  262. !   -host | --host | --hos | --ho)
  263. !     ac_prev=host ;;
  264. !   -host=* | --host=* | --hos=* | --ho=*)
  265. !     host="$ac_optarg" ;;
  266. !   -nfp | --nfp | --nf)
  267. !     with_fp=no ;; # Obsolete; use --without-fp.
  268. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  269. !   | --no-cr | --no-c)
  270. !     no_create=yes ;;
  271. !   -norecursion | --norecursion | --norecursio | --norecursi \
  272. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  273. !     norecursion=yes ;;
  274. !   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  275. !     ac_prev=prefix ;;
  276. !   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  277. !     prefix="$ac_optarg" ;;
  278. !   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  279. !   | --program-pre | --program-pr | --program-p)
  280. !     ac_prev=program_prefix ;;
  281. !   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  282. !   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  283. !     program_prefix="$ac_optarg" ;;
  284. !   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  285. !   | --program-suf | --program-su | --program-s)
  286. !     ac_prev=program_suffix ;;
  287. !   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  288. !   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  289. !     program_suffix="$ac_optarg" ;;
  290. !   -program-transform-name | --program-transform-name \
  291. !   | --program-transform-nam | --program-transform-na \
  292. !   | --program-transform-n | --program-transform- \
  293. !   | --program-transform | --program-transfor \
  294. !   | --program-transfo | --program-transf \
  295. !   | --program-trans | --program-tran \
  296. !   | --progr-tra | --program-tr | --program-t)
  297. !     ac_prev=program_transform_name ;;
  298. !   -program-transform-name=* | --program-transform-name=* \
  299. !   | --program-transform-nam=* | --program-transform-na=* \
  300. !   | --program-transform-n=* | --program-transform-=* \
  301. !   | --program-transform=* | --program-transfor=* \
  302. !   | --program-transfo=* | --program-transf=* \
  303. !   | --program-trans=* | --program-tran=* \
  304. !   | --progr-tra=* | --program-tr=* | --program-t=*)
  305. !     program_transform_name="$ac_optarg" ;;
  306. !   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  307. !   | -silent | --silent | --silen | --sile | --sil)
  308. !     silent=yes ;;
  309. !   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  310. !     ac_prev=srcdir ;;
  311. !   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  312. !     srcdir="$ac_optarg" ;;
  313. !   -target | --target | --targe | --targ | --tar | --ta | --t)
  314. !     ac_prev=target ;;
  315. !   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  316. !     target="$ac_optarg" ;;
  317. !   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  318. !     verbose=yes ;;
  319. !   -version | --version | --versio | --versi | --vers)
  320. !     echo "configure generated by autoconf version 1.11"
  321. !     exit 0 ;;
  322. !   -with-* | --with-*)
  323. !     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  324. !     # Reject names that aren't valid shell variable names.
  325. !     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  326. !       echo "configure: $ac_package: invalid package name" >&2; exit 1
  327. !     fi
  328. !     ac_package=`echo $ac_package| sed 's/-/_/g'`
  329. !     case "$ac_option" in
  330. !       *=*) ;;
  331. !       *) ac_optarg=yes ;;
  332. !     esac
  333. !     eval "with_${ac_package}='$ac_optarg'" ;;
  334. !   -without-* | --without-*)
  335. !     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  336. !     # Reject names that aren't valid shell variable names.
  337. !     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  338. !       echo "configure: $ac_package: invalid package name" >&2; exit 1
  339. !     fi
  340. !     ac_package=`echo $ac_package| sed 's/-/_/g'`
  341. !     eval "with_${ac_package}=no" ;;
  342. !   --x) with_x=yes ;; # Obsolete; use --with-x.
  343. !   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  344. !   | --x-incl | --x-inc | --x-in | --x-i)
  345. !     ac_prev=x_includes ;;
  346. !   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  347. !   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  348. !     x_includes="$ac_optarg" ;;
  349. !   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  350. !   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  351. !     ac_prev=x_libraries ;;
  352. !   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  353. !   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  354. !     x_libraries="$ac_optarg" ;;
  355. !   -*) echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  356. !     ;;
  357. !   *) 
  358. !     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  359. !       echo "configure: warning: $ac_option: invalid host type" >&2
  360. !     fi
  361. !     if test "x$nonopt" != xNONE; then
  362. !       echo "configure: can only configure for one host and one target at a time" >&2; exit 1
  363. !     fi
  364. !     nonopt="$ac_option"
  365. !     ;;
  366.   
  367. !   esac
  368. ! done
  369.   
  370. ! if test -n "$ac_prev"; then
  371. !   echo "configure: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  372.   fi
  373.   
  374. ! trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  375. ! trap 'rm -fr confdefs* $ac_clean_files' 0
  376. ! # Save the original args if we used an alternate arg parser.
  377. ! ac_configure_temp="${configure_args-$*}"
  378. ! # Strip out --no-create and --norecursion so they don't pile up.
  379. ! configure_args=
  380. ! for ac_arg in $ac_configure_temp; do
  381. !   case "$ac_arg" in
  382. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  383. !   | --no-cr | --no-c) ;;
  384. !   -norecursion | --norecursion | --norecursio | --norecursi \
  385. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  386. !   *) configure_args="$configure_args $ac_arg" ;;
  387. !   esac
  388. ! done
  389. ! # NLS nuisances.
  390. ! # These must not be set unconditionally because not all systems understand
  391. ! # e.g. LANG=C (notably SCO).
  392. ! if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  393. ! if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  394. ! # confdefs.h avoids OS command line length limits that DEFS can exceed.
  395. ! rm -rf conftest* confdefs.h
  396. ! # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  397. ! echo > confdefs.h
  398.   
  399.   # A filename unique to this package, relative to the directory that
  400.   # configure is in, which we can look for to find out if srcdir is correct.
  401. ! ac_unique_file=test.mmdf.uu
  402.   
  403.   # Find the source files, if location was not specified.
  404.   if test -z "$srcdir"; then
  405. !   ac_srcdir_defaulted=yes
  406.     # Try the directory containing this script, then `..'.
  407. !   ac_prog=$0
  408. !   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  409. !   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  410. !   srcdir=$ac_confdir
  411. !   if test ! -r $srcdir/$ac_unique_file; then
  412.       srcdir=..
  413.     fi
  414.   fi
  415. ! if test ! -r $srcdir/$ac_unique_file; then
  416. !   if test x$ac_srcdir_defaulted = xyes; then
  417. !     echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  418.     else
  419. !     echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  420.     fi
  421.   fi
  422. ! ac_ext=c
  423. ! # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  424. ! ac_cpp='${CPP}'
  425. ! ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  426. ! echo ""
  427. ! echo "Checking your system configuration..."
  428. ! echo ""
  429.   
  430.   if test -z "$CC"; then
  431.     # Extract the first word of `gcc', so it can be a program name with args.
  432. !   set ac_dummy gcc; ac_word=$2
  433. !   test -n "$silent" || echo "checking for $ac_word"
  434. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  435. !   for ac_dir in $PATH; do
  436. !     test -z "$ac_dir" && ac_dir=.
  437. !     if test -f $ac_dir/$ac_word; then
  438.         CC="gcc"
  439.         break
  440.       fi
  441.     done
  442. !   IFS="$ac_save_ifs"
  443.   fi
  444.   test -z "$CC" && CC="cc"
  445. ! test -n "$CC" && test -n "$verbose" && echo "    setting CC to $CC"
  446.   
  447.   # Find out if we are using GNU C, under whatever name.
  448.   cat > conftest.c <<EOF
  449. ***************
  450. *** 153,172 ****
  451.   fi
  452.   rm -f conftest*
  453.   
  454. ! echo checking how to run the C preprocessor
  455.   if test -z "$CPP"; then
  456. !   CPP='${CC-cc} -E'
  457. !   cat > conftest.c <<EOF
  458.   #include <stdio.h>
  459.   EOF
  460. ! err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  461. ! if test -z "$err"; then
  462.     :
  463.   else
  464.     CPP=/lib/cpp
  465.   fi
  466.   rm -f conftest*
  467.   fi
  468.   
  469.   # Make sure to not get the incompatible SysV /etc/install and
  470.   # /usr/sbin/install, which might be in PATH before a BSD-like install,
  471. --- 350,393 ----
  472.   fi
  473.   rm -f conftest*
  474.   
  475. ! test -n "$silent" || echo "checking how to run the C preprocessor"
  476.   if test -z "$CPP"; then
  477. !   # This must be in double quotes, not single quotes, because CPP may get
  478. !   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  479. !   # make.  It must be expanded now.
  480. !   CPP="${CC-cc} -E"
  481. !   cat > conftest.${ac_ext} <<EOF
  482. ! #include "confdefs.h"
  483. ! #include <stdio.h>
  484. ! Syntax Error
  485. ! EOF
  486. ! # Some shells (Coherent) do redirections in the wrong order, so need
  487. ! # the parens.
  488. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  489. ! if test -z "$ac_err"; then
  490. !   :
  491. ! else
  492. !   rm -rf conftest*
  493. !   CPP="${CC-cc} -E -traditional-cpp"
  494. !   cat > conftest.${ac_ext} <<EOF
  495. ! #include "confdefs.h"
  496.   #include <stdio.h>
  497. + Syntax Error
  498.   EOF
  499. ! # Some shells (Coherent) do redirections in the wrong order, so need
  500. ! # the parens.
  501. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  502. ! if test -z "$ac_err"; then
  503.     :
  504.   else
  505. +   rm -rf conftest*
  506.     CPP=/lib/cpp
  507.   fi
  508.   rm -f conftest*
  509.   fi
  510. + rm -f conftest*
  511. + fi
  512. + test -n "$verbose" && echo "    setting CPP to $CPP"
  513.   
  514.   # Make sure to not get the incompatible SysV /etc/install and
  515.   # /usr/sbin/install, which might be in PATH before a BSD-like install,
  516. ***************
  517. *** 173,253 ****
  518.   # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  519.   # or the AFS install, which mishandles nonexistent args, or
  520.   # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  521. ! # `staff'.  On most BSDish systems install is in /usr/bin, not /usr/ucb
  522. ! # anyway.  Sigh.
  523. ! if test "z${INSTALL}" = "z" ; then
  524. !   echo checking for install
  525. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  526. !   for dir in $PATH; do
  527. !     test -z "$dir" && dir=.
  528. !     case $dir in
  529. !     /etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  530.       *)
  531. !       if test -f $dir/installbsd; then
  532. !     INSTALL="$dir/installbsd -c" # OSF1
  533. !     INSTALL_PROGRAM='$(INSTALL)'
  534. !     INSTALL_DATA='$(INSTALL) -m 644'
  535. !     break
  536. !       fi
  537. !       if test -f $dir/install; then
  538. !     if grep dspmsg $dir/install >/dev/null 2>&1; then
  539. !       : # AIX
  540. !     else
  541. !       INSTALL="$dir/install -c"
  542. !       INSTALL_PROGRAM='$(INSTALL)'
  543. !       INSTALL_DATA='$(INSTALL) -m 644'
  544. !       break
  545.       fi
  546. !       fi
  547.         ;;
  548.       esac
  549.     done
  550. !   IFS="$saveifs"
  551.   fi
  552. - INSTALL=${INSTALL-cp}
  553. - INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  554. - INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  555. - echo checking for AIX
  556. - cat > conftest.c <<EOF
  557. - #ifdef _AIX
  558. -   yes
  559. - #endif
  560. - EOF
  561. - eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  562. - if egrep "yes" conftest.out >/dev/null 2>&1; then
  563. -   {
  564. - }
  565.   
  566.   fi
  567. ! rm -f conftest*
  568. ! echo checking for DYNIX/ptx libseq
  569. ! cat > conftest.c <<EOF
  570. ! #if defined(_SEQUENT_)
  571. !   yes
  572. ! #endif
  573. ! EOF
  574. ! eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  575. ! if egrep "yes" conftest.out >/dev/null 2>&1; then
  576. !   SEQUENT=1
  577.   fi
  578. ! rm -f conftest*
  579.   
  580. ! test -n "$SEQUENT" && test -f /usr/lib/libseq.a &&
  581. !   LIBS="$LIBS -lseq"
  582.   
  583. ! echo checking for POSIXized ISC
  584.   if test -d /etc/conf/kconfig.d &&
  585.     grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  586.   then
  587.     ISC=1 # If later tests want to check for ISC.
  588. !   {
  589.   }
  590.   
  591.     if test -n "$GCC"; then
  592. --- 394,469 ----
  593.   # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  594.   # or the AFS install, which mishandles nonexistent args, or
  595.   # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  596. ! # `staff', or /sbin/install on IRIX which has incompatible command-line
  597. ! # syntax.  Sigh.
  598. ! #
  599. ! #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  600. ! #     anyway.
  601. ! # This turns out not to be true, so the mere pathname isn't an indication
  602. ! # of whether the program works.  What we really need is a set of tests for
  603. ! # the install program to see if it actually works in all the required ways.
  604. ! #
  605. ! # Avoid using ./install, which might have been erroneously created
  606. ! # by make from ./install.sh.
  607. ! if test -z "${INSTALL}"; then
  608. !   test -n "$silent" || echo "checking for a BSD compatible install"
  609. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  610. !   for ac_dir in $PATH; do
  611. !     case "$ac_dir" in
  612. !     ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  613.       *)
  614. !       # OSF1 and SCO ODT 3.0 have their own names for install.
  615. !       for ac_prog in installbsd scoinst install; do
  616. !         if test -f $ac_dir/$ac_prog; then
  617. !       if test $ac_prog = install &&
  618. !             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  619. !         # AIX install.  It has an incompatible calling convention.
  620. !         # OSF/1 installbsd also uses dspmsg, but is usable.
  621. !         :
  622. !       else
  623. !         INSTALL="$ac_dir/$ac_prog -c"
  624. !         break 2
  625. !       fi
  626.       fi
  627. !       done
  628.         ;;
  629.       esac
  630.     done
  631. !   IFS="$ac_save_ifs"
  632.   fi
  633.   
  634. + if test -z "$INSTALL"; then
  635. +   # As a last resort, use the slow shell script.
  636. +   for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do
  637. +     if test -f $ac_dir/install.sh; then
  638. +       INSTALL="$ac_dir/install.sh -c"; break
  639. +     fi
  640. +   done
  641.   fi
  642. ! if test -z "$INSTALL"; then
  643. !   echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1
  644.   fi
  645. ! test -n "$verbose" && echo "    setting INSTALL to $INSTALL"
  646. ! # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  647. ! # It thinks the first close brace ends the variable substitution.
  648. ! test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  649. ! test -n "$verbose" && echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  650.   
  651. ! test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  652. ! test -n "$verbose" && echo "    setting INSTALL_DATA to $INSTALL_DATA"
  653.   
  654. ! test -n "$silent" || echo "checking for POSIXized ISC"
  655.   if test -d /etc/conf/kconfig.d &&
  656.     grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  657.   then
  658.     ISC=1 # If later tests want to check for ISC.
  659. !   
  660. ! {
  661. ! test -n "$verbose" && \
  662. ! echo "    defining _POSIX_SOURCE"
  663. ! echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  664. ! DEFS="$DEFS -D_POSIX_SOURCE=1"
  665.   }
  666.   
  667.     if test -n "$GCC"; then
  668. ***************
  669. *** 257,303 ****
  670.     fi
  671.   fi
  672.   
  673. ! echo checking for minix/config.h
  674. ! cat > conftest.c <<EOF
  675.   #include <minix/config.h>
  676.   EOF
  677. ! err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  678. ! if test -z "$err"; then
  679.     MINIX=1
  680.   fi
  681.   rm -f conftest*
  682.   
  683.   # The Minix shell can't assign to the same variable on the same line!
  684.   if test -n "$MINIX"; then
  685. !   {
  686.   }
  687.   
  688. !   {
  689.   
  690.   }
  691.   
  692. !   {
  693.   
  694. ! }
  695.   
  696.   fi
  697.   
  698. ! echo checking for ANSI C header files
  699. ! cat > conftest.c <<EOF
  700.   #include <stdlib.h>
  701.   #include <stdarg.h>
  702.   #include <string.h>
  703.   #include <float.h>
  704.   EOF
  705. ! err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  706. ! if test -z "$err"; then
  707.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  708. ! echo '#include <string.h>' > conftest.c
  709. ! eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  710.   if egrep "memchr" conftest.out >/dev/null 2>&1; then
  711. !   
  712. ! cat > conftest.c <<EOF
  713.   #include <ctype.h>
  714.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  715.   #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  716. --- 473,567 ----
  717.     fi
  718.   fi
  719.   
  720. ! test -n "$silent" || echo "checking for minix/config.h"
  721. ! cat > conftest.${ac_ext} <<EOF
  722. ! #include "confdefs.h"
  723.   #include <minix/config.h>
  724.   EOF
  725. ! # Some shells (Coherent) do redirections in the wrong order, so need
  726. ! # the parens.
  727. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  728. ! if test -z "$ac_err"; then
  729. !   rm -rf conftest*
  730.     MINIX=1
  731.   fi
  732.   rm -f conftest*
  733.   
  734.   # The Minix shell can't assign to the same variable on the same line!
  735.   if test -n "$MINIX"; then
  736. !   
  737. ! {
  738. ! test -n "$verbose" && \
  739. ! echo "    defining _POSIX_SOURCE"
  740. ! echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  741. ! DEFS="$DEFS -D_POSIX_SOURCE=1"
  742.   }
  743.   
  744. !   
  745. ! {
  746. ! test -n "$verbose" && \
  747. ! echo "    defining" _POSIX_1_SOURCE to be "2"
  748. ! echo "#define" _POSIX_1_SOURCE "2" >> confdefs.h
  749. ! DEFS="$DEFS -D_POSIX_1_SOURCE=2"
  750. ! }
  751.   
  752. +   
  753. + {
  754. + test -n "$verbose" && \
  755. + echo "    defining _MINIX"
  756. + echo "#define" _MINIX "1" >> confdefs.h
  757. + DEFS="$DEFS -D_MINIX=1"
  758.   }
  759.   
  760. ! fi
  761.   
  762. ! ac_save_LIBS="${LIBS}"
  763. ! LIBS="${LIBS} -lseq"
  764. ! ac_have_lib=""
  765. ! test -n "$silent" || echo "checking for -lseq"
  766. ! cat > conftest.${ac_ext} <<EOF
  767. ! #include "confdefs.h"
  768.   
  769. + int main() { return 0; }
  770. + int t() { main();; return 0; }
  771. + EOF
  772. + if eval $ac_compile; then
  773. +   rm -rf conftest*
  774. +   ac_have_lib="1"
  775. + fi
  776. + rm -f conftest*
  777. + LIBS="${ac_save_LIBS}"
  778. + if test -n "${ac_have_lib}"; then
  779. +    :; LIBS="$LIBS -lseq"
  780. + else
  781. +    :; 
  782.   fi
  783.   
  784. ! test -n "$silent" || echo "checking for ANSI C header files"
  785. ! cat > conftest.${ac_ext} <<EOF
  786. ! #include "confdefs.h"
  787.   #include <stdlib.h>
  788.   #include <stdarg.h>
  789.   #include <string.h>
  790.   #include <float.h>
  791.   EOF
  792. ! # Some shells (Coherent) do redirections in the wrong order, so need
  793. ! # the parens.
  794. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  795. ! if test -z "$ac_err"; then
  796. !   rm -rf conftest*
  797.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  798. ! echo '#include "confdefs.h"
  799. ! #include <string.h>' > conftest.${ac_ext}
  800. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  801.   if egrep "memchr" conftest.out >/dev/null 2>&1; then
  802. !   rm -rf conftest*
  803. !   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  804. ! cat > conftest.${ac_ext} <<EOF
  805. ! #include "confdefs.h"
  806.   #include <ctype.h>
  807.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  808.   #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  809. ***************
  810. *** 307,472 ****
  811.   exit (0); }
  812.   
  813.   EOF
  814. ! eval $compile
  815.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  816. !   {
  817.   }
  818.   
  819.   fi
  820.   rm -f conftest*
  821.   fi
  822. ! rm -f conftest*
  823.   
  824.   fi
  825.   rm -f conftest*
  826.   
  827. - echo checking for BSD string and memory functions
  828. - cat > conftest.c <<EOF
  829. - #include <strings.h>
  830. - int main() { exit(0); }
  831. - int t() { rindex(0, 0); bzero(0, 0); }
  832. - EOF
  833. - if eval $compile; then
  834. -   :
  835. - else
  836. -   {
  837. - }
  838.   
  839.   fi
  840.   rm -f conftest*
  841.   
  842. ! echo checking for uid_t in sys/types.h
  843. ! echo '#include <sys/types.h>' > conftest.c
  844. ! eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  845.   if egrep "uid_t" conftest.out >/dev/null 2>&1; then
  846.     :
  847.   else
  848. !   {
  849.   }
  850. !  {
  851.   }
  852.   
  853.   fi
  854.   rm -f conftest*
  855.   
  856. ! for func in strdup
  857.   do
  858. ! echo checking for ${func}
  859. ! cat > conftest.c <<EOF
  860. ! int main() { exit(0); }
  861. ! int t() { /* The GNU C library defines this for functions which it implements
  862.       to always fail with ENOSYS.  Some functions are actually named
  863.       something starting with __ and the normal name is an alias.  */
  864. ! #if defined (__stub_${func}) || defined (__stub___${func})
  865.   choke me
  866.   #else
  867.   /* Override any gcc2 internal prototype to avoid an error.  */
  868. ! extern char ${func}(); ${func}();
  869.   #endif
  870. !  }
  871.   EOF
  872. ! if eval $compile; then
  873.     :
  874.   else
  875. !   LIBOBJS="$LIBOBJS ${func}.o"
  876. ! test -n "$verbose" && echo "    using ${func}.o instead"
  877.   fi
  878.   rm -f conftest*
  879.   
  880.   done
  881.   
  882. ! echo "checking for /usr/spool/mail..."
  883. ! test -d /usr/spool/mail && MAILDIR="/usr/spool/mail/"
  884.   test -z "$MAILDIR" && echo "checking for /usr/mail..." && test -d /usr/mail && MAILDIR="/usr/mail/"
  885.   test -z "$MAILDIR" && echo "checking for $HOME/.newmail..." && test -d $HOME/.newmail && MAILFILE="~/.newmail"
  886.   echo "checking for \$MAIL environment variable..."
  887. ! test -n "$MAIL" && MAILVAR="MAIL"
  888. ! test -n "$MAILDIR" && {
  889.   
  890.   }
  891.   
  892. ! test -n "$MAILFILE" && {
  893.   
  894.   }
  895.   
  896. ! test -n "$MAILVAR" && {
  897.   
  898.   }
  899.   
  900. ! echo "checking for sendmail or MMDF..."
  901. ! test `((ps -x 2>&1 > /dev/null && ps -auxww | grep sendmail) || (ps -x 2>&1 > /dev/null && ps -eaf | grep sendmail)) | wc -l` -gt 1 || {
  902.   
  903.   }
  904.   
  905.   if test -z "$UUDECODE"; then
  906.     # Extract the first word of `uudecode', so it can be a program name with args.
  907. !   set dummy uudecode; word=$2
  908. !   echo checking for $word
  909. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  910. !   for dir in $PATH; do
  911. !     test -z "$dir" && dir=.
  912. !     if test -f $dir/$word; then
  913.         UUDECODE="$dir/uudecode"
  914.         break
  915.       fi
  916.     done
  917. !   IFS="$saveifs"
  918.   fi
  919.   test -z "$UUDECODE" && UUDECODE="echo "'"'"Can't uudecode MMDF test file; creating empty file."'"'"; touch"
  920. ! test -n "$UUDECODE" -a -n "$verbose" && echo "    setting UUDECODE to $UUDECODE"
  921.   
  922.   test -z "$UUDECODE" && echo "Not found, you'll have to uudecode the MMDF test file to test the MMDF fromwho."
  923.   if test -z "$INSTALL"; then
  924.     # Extract the first word of `install', so it can be a program name with args.
  925. !   set dummy install; word=$2
  926. !   echo checking for $word
  927. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  928. !   for dir in $PATH; do
  929. !     test -z "$dir" && dir=.
  930. !     if test -f $dir/$word; then
  931.         INSTALL="$dir/install"
  932.         break
  933.       fi
  934.     done
  935. !   IFS="$saveifs"
  936.   fi
  937.   test -z "$INSTALL" && INSTALL="cp"
  938. ! test -n "$INSTALL" -a -n "$verbose" && echo "    setting INSTALL to $INSTALL"
  939.   
  940.   if test -z "$MKDIR"; then
  941.     # Extract the first word of `install', so it can be a program name with args.
  942. !   set dummy install; word=$2
  943. !   echo checking for $word
  944. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  945. !   for dir in $PATH; do
  946. !     test -z "$dir" && dir=.
  947. !     if test -f $dir/$word; then
  948.         MKDIR="install -d"
  949.         break
  950.       fi
  951.     done
  952. !   IFS="$saveifs"
  953.   fi
  954.   test -z "$MKDIR" && MKDIR="mkdir -p"
  955. ! test -n "$MKDIR" -a -n "$verbose" && echo "    setting MKDIR to $MKDIR"
  956.   
  957.   if test -n "$prefix"; then
  958. !   test -z "$exec_prefix" && exec_prefix='${prefix}'
  959. !   prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  960.   fi
  961.   if test -n "$exec_prefix"; then
  962. !   prsub="$prsub
  963. ! s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%\
  964. ! exec_prefix\\1=\\2$exec_prefix%"
  965.   fi
  966. - DEFS="`echo \"$DEFS\" | sed 's%[&\\\]%\\\&%g'`"
  967.   
  968. ! trap 'rm -f config.status; exit 1' 1 3 15
  969.   echo creating config.status
  970.   rm -f config.status
  971.   cat > config.status <<EOF
  972. --- 571,806 ----
  973.   exit (0); }
  974.   
  975.   EOF
  976. ! eval $ac_compile
  977.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  978. !   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  979. ! echo '#include "confdefs.h"
  980. ! #include <stdlib.h>' > conftest.${ac_ext}
  981. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  982. ! if egrep "free" conftest.out >/dev/null 2>&1; then
  983. !   rm -rf conftest*
  984. !   
  985. ! {
  986. ! test -n "$verbose" && \
  987. ! echo "    defining STDC_HEADERS"
  988. ! echo "#define" STDC_HEADERS "1" >> confdefs.h
  989. ! DEFS="$DEFS -DSTDC_HEADERS=1"
  990.   }
  991.   
  992.   fi
  993.   rm -f conftest*
  994.   fi
  995. ! rm -fr conftest*
  996.   
  997.   fi
  998.   rm -f conftest*
  999.   
  1000.   
  1001.   fi
  1002.   rm -f conftest*
  1003.   
  1004. ! test -n "$silent" || echo "checking for uid_t in sys/types.h"
  1005. ! echo '#include "confdefs.h"
  1006. ! #include <sys/types.h>' > conftest.${ac_ext}
  1007. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1008.   if egrep "uid_t" conftest.out >/dev/null 2>&1; then
  1009.     :
  1010.   else
  1011. !   rm -rf conftest*
  1012. !   
  1013. ! {
  1014. ! test -n "$verbose" && \
  1015. ! echo "    defining" uid_t to be "int"
  1016. ! echo "#define" uid_t "int" >> confdefs.h
  1017. ! DEFS="$DEFS -Duid_t=int"
  1018.   }
  1019. !  
  1020. ! {
  1021. ! test -n "$verbose" && \
  1022. ! echo "    defining" gid_t to be "int"
  1023. ! echo "#define" gid_t "int" >> confdefs.h
  1024. ! DEFS="$DEFS -Dgid_t=int"
  1025.   }
  1026.   
  1027.   fi
  1028.   rm -f conftest*
  1029.   
  1030. ! for ac_func in strdup
  1031.   do
  1032. ! test -n "$silent" || echo "checking for ${ac_func}"
  1033. ! cat > conftest.${ac_ext} <<EOF
  1034. ! #include "confdefs.h"
  1035. ! #include <ctype.h>
  1036. ! int main() { return 0; }
  1037. ! int t() { 
  1038. ! /* The GNU C library defines this for functions which it implements
  1039.       to always fail with ENOSYS.  Some functions are actually named
  1040.       something starting with __ and the normal name is an alias.  */
  1041. ! #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  1042.   choke me
  1043.   #else
  1044.   /* Override any gcc2 internal prototype to avoid an error.  */
  1045. ! extern char ${ac_func}(); ${ac_func}();
  1046.   #endif
  1047. ! ; return 0; }
  1048.   EOF
  1049. ! if eval $ac_compile; then
  1050.     :
  1051.   else
  1052. !   rm -rf conftest*
  1053. !   LIBOBJS="$LIBOBJS ${ac_func}.o"
  1054. ! test -n "$verbose" && echo "    using ${ac_func}.o instead"
  1055.   fi
  1056.   rm -f conftest*
  1057.   
  1058.   done
  1059.   
  1060. ! echo "checking for /var/spool/mail..." && test -d /var/spool/mail && MAILDIR="/var/spool/mail/"
  1061. ! test -z "$MAILDIR" && echo "checking for /usr/spool/mail..." && test -d /usr/spool/mail && MAILDIR="/usr/spool/mail/"
  1062. ! test -z "$MAILDIR" && echo "checking for /var/mail..." && test -d /var/mail && MAILDIR="/var/mail/"
  1063.   test -z "$MAILDIR" && echo "checking for /usr/mail..." && test -d /usr/mail && MAILDIR="/usr/mail/"
  1064.   test -z "$MAILDIR" && echo "checking for $HOME/.newmail..." && test -d $HOME/.newmail && MAILFILE="~/.newmail"
  1065.   echo "checking for \$MAIL environment variable..."
  1066. ! if test -n "$MAIL"
  1067. ! then
  1068. !   MAILVAR="MAIL"
  1069. ! fi
  1070.   
  1071. + if test -n "$MAILDIR"
  1072. + then
  1073. +   
  1074. + {
  1075. + test -n "$verbose" && \
  1076. + echo "    defining" MAILDIR to be "\"$MAILDIR\""
  1077. + echo "#define" MAILDIR "\"$MAILDIR\"" >> confdefs.h
  1078. + DEFS="$DEFS -DMAILDIR=\"$MAILDIR\""
  1079.   }
  1080.   
  1081. ! fi
  1082.   
  1083. + if test -n "$MAILFILE"
  1084. + then
  1085. +   
  1086. + {
  1087. + test -n "$verbose" && \
  1088. + echo "    defining" MAILFILE to be "\"$MAILFILE\""
  1089. + echo "#define" MAILFILE "\"$MAILFILE\"" >> confdefs.h
  1090. + DEFS="$DEFS -DMAILFILE=\"$MAILFILE\""
  1091.   }
  1092.   
  1093. ! fi
  1094.   
  1095. + if test -n "$MAILVAR"
  1096. + then
  1097. +   
  1098. + {
  1099. + test -n "$verbose" && \
  1100. + echo "    defining" MAILVAR to be "\"$MAILVAR\""
  1101. + echo "#define" MAILVAR "\"$MAILVAR\"" >> confdefs.h
  1102. + DEFS="$DEFS -DMAILVAR=\"$MAILVAR\""
  1103.   }
  1104.   
  1105. ! fi
  1106.   
  1107. + echo "checking for sendmail or MMDF..."
  1108. + test `((ps -x 2>&1 > /dev/null && ps -auxww | grep sendmail) || (ps -x 2>&1 > /dev/null && ps -eaf | grep sendmail)) | wc -l` -gt 1 || 
  1109. + {
  1110. + test -n "$verbose" && \
  1111. + echo "    defining" MMDF to be "1"
  1112. + echo "#define" MMDF "1" >> confdefs.h
  1113. + DEFS="$DEFS -DMMDF=1"
  1114.   }
  1115.   
  1116.   if test -z "$UUDECODE"; then
  1117.     # Extract the first word of `uudecode', so it can be a program name with args.
  1118. !   set ac_dummy uudecode; ac_word=$2
  1119. !   test -n "$silent" || echo "checking for $ac_word"
  1120. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1121. !   for ac_dir in $PATH; do
  1122. !     test -z "$ac_dir" && ac_dir=.
  1123. !     if test -f $ac_dir/$ac_word; then
  1124.         UUDECODE="$dir/uudecode"
  1125.         break
  1126.       fi
  1127.     done
  1128. !   IFS="$ac_save_ifs"
  1129.   fi
  1130.   test -z "$UUDECODE" && UUDECODE="echo "'"'"Can't uudecode MMDF test file; creating empty file."'"'"; touch"
  1131. ! test -n "$UUDECODE" && test -n "$verbose" && echo "    setting UUDECODE to $UUDECODE"
  1132.   
  1133.   test -z "$UUDECODE" && echo "Not found, you'll have to uudecode the MMDF test file to test the MMDF fromwho."
  1134.   if test -z "$INSTALL"; then
  1135.     # Extract the first word of `install', so it can be a program name with args.
  1136. !   set ac_dummy install; ac_word=$2
  1137. !   test -n "$silent" || echo "checking for $ac_word"
  1138. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1139. !   for ac_dir in $PATH; do
  1140. !     test -z "$ac_dir" && ac_dir=.
  1141. !     if test -f $ac_dir/$ac_word; then
  1142.         INSTALL="$dir/install"
  1143.         break
  1144.       fi
  1145.     done
  1146. !   IFS="$ac_save_ifs"
  1147.   fi
  1148.   test -z "$INSTALL" && INSTALL="cp"
  1149. ! test -n "$INSTALL" && test -n "$verbose" && echo "    setting INSTALL to $INSTALL"
  1150.   
  1151.   if test -z "$MKDIR"; then
  1152.     # Extract the first word of `install', so it can be a program name with args.
  1153. !   set ac_dummy install; ac_word=$2
  1154. !   test -n "$silent" || echo "checking for $ac_word"
  1155. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1156. !   for ac_dir in $PATH; do
  1157. !     test -z "$ac_dir" && ac_dir=.
  1158. !     if test -f $ac_dir/$ac_word; then
  1159.         MKDIR="install -d"
  1160.         break
  1161.       fi
  1162.     done
  1163. !   IFS="$ac_save_ifs"
  1164.   fi
  1165.   test -z "$MKDIR" && MKDIR="mkdir -p"
  1166. ! test -n "$MKDIR" && test -n "$verbose" && echo "    setting MKDIR to $MKDIR"
  1167.   
  1168. + # The preferred way to propogate these variables is regular @ substitutions.
  1169.   if test -n "$prefix"; then
  1170. !   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  1171. ! else
  1172. !   prefix=/usr/local
  1173.   fi
  1174.   if test -n "$exec_prefix"; then
  1175. !   ac_prsub="$ac_prsub
  1176. ! s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  1177. ! else
  1178. !   exec_prefix='${prefix}' # Let make expand it.
  1179. ! fi
  1180. ! # Any assignment to VPATH causes Sun make to only execute
  1181. ! # the first set of double-colon rules, so remove it if not needed.
  1182. ! # If there is a colon in the path, we need to keep it.
  1183. ! if test "x$srcdir" = x.; then
  1184. !   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1185.   fi
  1186.   
  1187. ! # Quote sed substitution magic chars in DEFS.
  1188. ! cat >conftest.def <<EOF
  1189. ! $DEFS
  1190. ! EOF
  1191. ! ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  1192. ! DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  1193. ! rm -f conftest.def
  1194. ! # Substitute for predefined variables.
  1195. ! trap 'rm -f config.status; exit 1' 1 2 15
  1196.   echo creating config.status
  1197.   rm -f config.status
  1198.   cat > config.status <<EOF
  1199. ***************
  1200. *** 476,493 ****
  1201.   # This directory was configured as follows,
  1202.   # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1203.   #
  1204. ! # $0 $*
  1205.   
  1206. ! for arg
  1207.   do
  1208. !   case "\$arg" in
  1209. !     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1210. !     exec /bin/sh $0 $* ;;
  1211. !     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  1212.     esac
  1213.   done
  1214.   
  1215. ! trap 'rm -f Makefile; exit 1' 1 3 15
  1216.   CC='$CC'
  1217.   CPP='$CPP'
  1218.   INSTALL='$INSTALL'
  1219. --- 810,834 ----
  1220.   # This directory was configured as follows,
  1221.   # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1222.   #
  1223. ! # $0 $configure_args
  1224.   
  1225. ! ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  1226. ! for ac_option
  1227.   do
  1228. !   case "\$ac_option" in
  1229. !   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1230. !     echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  1231. !     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  1232. !   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1233. !     echo "config.status generated by autoconf version 1.11"
  1234. !     exit 0 ;;
  1235. !   -help | --help | --hel | --he | --h)
  1236. !     echo "\$ac_cs_usage"; exit 0 ;;
  1237. !   *) echo "\$ac_cs_usage"; exit 1 ;;
  1238.     esac
  1239.   done
  1240.   
  1241. ! trap 'rm -f Makefile; exit 1' 1 2 15
  1242.   CC='$CC'
  1243.   CPP='$CPP'
  1244.   INSTALL='$INSTALL'
  1245. ***************
  1246. *** 498,528 ****
  1247.   MKDIR='$MKDIR'
  1248.   LIBS='$LIBS'
  1249.   srcdir='$srcdir'
  1250. ! DEFS='$DEFS'
  1251.   prefix='$prefix'
  1252.   exec_prefix='$exec_prefix'
  1253. ! prsub='$prsub'
  1254.   EOF
  1255.   cat >> config.status <<\EOF
  1256.   
  1257. ! top_srcdir=$srcdir
  1258.   
  1259. ! # Allow make-time overrides of the generated file list.
  1260. ! test -n "$gen_files" || gen_files="Makefile"
  1261. ! for file in .. $gen_files; do if [ "x$file" != "x.." ]; then
  1262. !   srcdir=$top_srcdir
  1263.     # Remove last slash and all that follows it.  Not all systems have dirname.
  1264. !   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  1265. !   if test "$dir" != "$file"; then
  1266. !     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  1267. !     test ! -d $dir && mkdir $dir
  1268.     fi
  1269. !   echo creating $file
  1270. !   rm -f $file
  1271. !   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  1272.     sed -e "
  1273. ! $prsub
  1274.   s%@CC@%$CC%g
  1275.   s%@CPP@%$CPP%g
  1276.   s%@INSTALL@%$INSTALL%g
  1277. --- 839,891 ----
  1278.   MKDIR='$MKDIR'
  1279.   LIBS='$LIBS'
  1280.   srcdir='$srcdir'
  1281. ! top_srcdir='$top_srcdir'
  1282.   prefix='$prefix'
  1283.   exec_prefix='$exec_prefix'
  1284. ! DEFS='$DEFS'
  1285. ! ac_prsub='$ac_prsub'
  1286. ! ac_vpsub='$ac_vpsub'
  1287. ! extrasub='$extrasub'
  1288.   EOF
  1289.   cat >> config.status <<\EOF
  1290.   
  1291. ! ac_given_srcdir=$srcdir
  1292.   
  1293. ! CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  1294. ! for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  1295.     # Remove last slash and all that follows it.  Not all systems have dirname.
  1296. !   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1297. !   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1298. !     # The file is in a subdirectory.
  1299. !     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1300. !     ac_dir_suffix="/$ac_dir"
  1301. !   else
  1302. !     ac_dir_suffix=
  1303.     fi
  1304. !   # A "../" for each directory in $ac_dir_suffix.
  1305. !   ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1306. !   case "$ac_given_srcdir" in
  1307. !   .)  srcdir=.
  1308. !       if test -z "$ac_dir_suffix"; then top_srcdir=.
  1309. !       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1310. !   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1311. !   *) # Relative path.
  1312. !     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1313. !     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1314. !   esac
  1315. !   echo creating "$ac_file"
  1316. !   rm -f "$ac_file"
  1317. !   comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
  1318. !   case "$ac_file" in
  1319. !     *.c | *.h | *.C | *.cc | *.m )  echo "/* $comment_str */" > "$ac_file" ;;
  1320. !     * )          echo "# $comment_str"     > "$ac_file" ;;
  1321. !   esac
  1322.     sed -e "
  1323. ! $ac_prsub
  1324. ! $ac_vpsub
  1325. ! $extrasub
  1326.   s%@CC@%$CC%g
  1327.   s%@CPP@%$CPP%g
  1328.   s%@INSTALL@%$INSTALL%g
  1329. ***************
  1330. *** 533,546 ****
  1331.   s%@MKDIR@%$MKDIR%g
  1332.   s%@LIBS@%$LIBS%g
  1333.   s%@srcdir@%$srcdir%g
  1334.   s%@DEFS@%$DEFS%
  1335. ! " $top_srcdir/${file}.in >> $file
  1336.   fi; done
  1337.   
  1338.   exit 0
  1339.   EOF
  1340.   chmod +x config.status
  1341. ! test -n "$no_create" || ./config.status
  1342.   
  1343.   echo ""
  1344.   echo "Now check the generated Makefile for the C compiler & options, and"
  1345. --- 896,915 ----
  1346.   s%@MKDIR@%$MKDIR%g
  1347.   s%@LIBS@%$LIBS%g
  1348.   s%@srcdir@%$srcdir%g
  1349. + s%@top_srcdir@%$top_srcdir%g
  1350. + s%@prefix@%$prefix%g
  1351. + s%@exec_prefix@%$exec_prefix%g
  1352.   s%@DEFS@%$DEFS%
  1353. ! " $ac_given_srcdir/${ac_file}.in >> $ac_file
  1354.   fi; done
  1355.   
  1356.   exit 0
  1357.   EOF
  1358.   chmod +x config.status
  1359. ! # Some shells look in PATH for config.status without the "./".
  1360. ! test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
  1361.   
  1362.   echo ""
  1363.   echo "Now check the generated Makefile for the C compiler & options, and"
  1364. diff -c fromwho.old/fromwho.c fromwho/fromwho.c
  1365. *** fromwho.old/fromwho.c    Sun Jul 24 00:38:11 1994
  1366. --- fromwho/fromwho.c    Sun Jul 24 00:35:01 1994
  1367. ***************
  1368. *** 87,98 ****
  1369.   #include <stdio.h>
  1370.   #include <pwd.h>
  1371.   
  1372. ! #if USG || STDC_HEADERS
  1373.   #include <string.h>
  1374. ! #else /* USG || STDC_HEADERS */
  1375.   #include <strings.h>
  1376.   #define HAS_INDEX
  1377. ! #endif /* USG || STDC_HEADERS */
  1378.   
  1379.   #include <parseargs.h>
  1380.   
  1381. --- 87,98 ----
  1382.   #include <stdio.h>
  1383.   #include <pwd.h>
  1384.   
  1385. ! #if STDC_HEADERS
  1386.   #include <string.h>
  1387. ! #else /* STDC_HEADERS */
  1388.   #include <strings.h>
  1389.   #define HAS_INDEX
  1390. ! #endif /* STDC_HEADERS */
  1391.   
  1392.   #include <parseargs.h>
  1393.   
  1394. Common subdirectories: fromwho.old/parseargs and fromwho/parseargs
  1395.