]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
autogen-5.6.5
authorHarlan Stenn <stenn@ntp.org>
Sun, 9 Jan 2005 11:23:02 +0000 (06:23 -0500)
committerHarlan Stenn <stenn@ntp.org>
Sun, 9 Jan 2005 11:23:02 +0000 (06:23 -0500)
bk: 41e11416VTX916ID9SF5iHa8qioVvA

27 files changed:
libopts/Makefile.am
libopts/autoopts.c
libopts/autoopts.h
libopts/boolean.c
libopts/compat/compat.h
libopts/compat/pathfind.c
libopts/enumeration.c
libopts/environment.c
libopts/genshell.c
libopts/genshell.h
libopts/libopts.m4
libopts/load.c
libopts/makeshell.c
libopts/numeric.c
libopts/options.h
libopts/pgusage.c
libopts/putshell.c
libopts/restore.c
libopts/save.c
libopts/sort.c
libopts/stack.c
libopts/streqv.h
libopts/streqvcmp.c
libopts/usage-txt.h
libopts/usage.c
libopts/version.c
m4/libopts.m4

index 88659ca1686a0536df145af9412527add0c97ecd..83951a9e62dfbbeb042481afa7dca46a7e3c0bda 100644 (file)
@@ -2,7 +2,7 @@
 MAINTAINERCLEANFILES  = Makefile.in
 lib_LTLIBRARIES       = libopts.la
 libopts_la_SOURCES    = libopts.c
-libopts_la_LDFLAGS    = -version-info  23:0:14
+libopts_la_LDFLAGS    = -version-info  23:1:14
 EXTRA_DIST            = COPYING.lgpl COPYING.mbsd compat \
     autoopts.c    autoopts.h    boolean.c     enumeration.c environment.c  \
     genshell.c    genshell.h    libopts.c     load.c        makeshell.c  \
index 0039f6b312d54767a6e82f860a5671e0d40b0c8b..602bf5b4da71e771cecec315f2c68ab2b5b12211 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: autoopts.c,v 2.74 2004/10/15 01:54:16 bkorb Exp $
+ *  $Id: autoopts.c,v 4.1 2005/01/01 00:12:40 bkorb Exp $
  *
  *  This file contains all of the routines that must be linked into
  *  an executable to use the generated option processing.  The optional
@@ -100,13 +100,11 @@ handleOption( tOptions* pOpts, tOptState* pOptState )
 
     /*
      *  IF we are presetting options, then we will ignore any un-presettable
-     *  options.  They are the ones either marked as such, or equivalenced to
-     *  a different option.
+     *  options.  They are the ones either marked as such.
      */
     if (  ((pOpts->fOptSet & OPTPROC_PRESETTING) != 0)
-       && (  ((pOD->fOptState & OPTST_NO_INIT) != 0)
-          || (pOD->optEquivIndex != NO_EQUIVALENT)
-       )  )
+       && ((pOD->fOptState & OPTST_NO_INIT) != 0)
+       )
         return PROBLEM;
 
     /*
@@ -120,30 +118,48 @@ handleOption( tOptions* pOpts, tOptState* pOptState )
     if (pOD->optEquivIndex != NO_EQUIVALENT) {
         tOptDesc* p = pOpts->pOptDesc + pOD->optEquivIndex;
 
-        if (p->optActualIndex == NO_EQUIVALENT) {
+        /*
+         * IF the current option state has not been defined (set on the
+         *    command line), THEN we will allow continued resetting of
+         *    the value.  Once "defined", then it must not change.
+         */
+        if ((pOD->fOptState & OPTST_DEFINED) != 0) {
+            /*
+             *  The equivalenced-to option has been found on the command
+             *  line before.  Make sure new occurrences are the same type.
+             *
+             *  IF this option has been previously equivalenced and
+             *     it was not the same equivalenced-to option,
+             *  THEN we have a usage problem.
+             */
+            if (p->optActualIndex != pOD->optIndex) {
+                fprintf( stderr, (char*)zMultiEquiv, p->pz_Name, pOD->pz_Name,
+                         (pOpts->pOptDesc + p->optActualIndex)->pz_Name);
+                return FAILURE;
+            }
+        } else {
+            /*
+             *  Set the equivalenced-to actual option index to no-equivalent
+             *  so that we set all the entries below.  This option may either
+             *  never have been selected before, or else it was selected by
+             *  some sort of "presetting" mechanism.
+             */
+            p->optActualIndex = NO_EQUIVALENT;
+        }
+
+        if (p->optActualIndex != pOD->optIndex) {
             /*
              *  First time through, copy over the state
              *  and add in the equivalence flag
              */
             p->optActualValue = pOD->optValue;
             p->optActualIndex = pOD->optIndex;
-            p->optCookie      = pOD->optCookie;
             pOptState->flags |= OPTST_EQUIVALENCE;          
         }
 
-        else if (p->optActualIndex != pOD->optIndex) {
-            /*
-             *  IF this option has been previously equivalenced and
-             *     it was not the same equivalenced-to option,
-             *  THEN we have a usage problem.
-             */
-            fprintf( stderr, (char*)zMultiEquiv, p->pz_Name, pOD->pz_Name,
-                     (pOpts->pOptDesc + p->optActualIndex)->pz_Name);
-            return FAILURE;
-        }
-
         /*
-         *  Copy the most recent option argument
+         *  Copy the most recent option argument.  set membership state
+         *  is kept in ``p->optCookie''.  Do not overwrite.
          */
         p->pzLastArg = pOD->pzLastArg;
         pOD = p;
index 840ab2818cfca03674f0147f7943c6e391495197..d699a25a09405d68c1cfe9453402496a7c437589 100644 (file)
@@ -2,7 +2,7 @@
 /*
  *  Time-stamp:      "2004-08-30 19:09:50 bkorb"
  *
- *  autoopts.h  $Id: autoopts.h,v 2.50 2004/10/02 21:37:46 bkorb Exp $
+ *  autoopts.h  $Id: autoopts.h,v 4.1 2005/01/01 00:12:40 bkorb Exp $
  *
  *  This file defines all the global structures and special values
  *  used in the automated option processing library.
index c5c09dcb2b879660f45f5aa73b4e65f3161aa922..4361b4d1f33175a492c9b00b28f321a23f1c8350 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: boolean.c,v 2.11 2004/02/02 03:31:50 bkorb Exp $
+ *  $Id: boolean.c,v 4.1 2005/01/01 00:12:40 bkorb Exp $
  *
  *   Automated Options Paged Usage module.
  *
index 77073f153269cc07d8cb3f310bc1361f80d1e019..bd6a7c891fae513851eb28bd4a487c32fa65abd6 100644 (file)
@@ -7,7 +7,7 @@
  * Author:           Gary V Vaughan <gvaughan@oranda.demon.co.uk>
  * Created:          Mon Jun 30 15:54:46 1997
  *
- * $Id: compat.h,v 2.20 2004/10/15 01:54:16 bkorb Exp $
+ * $Id: compat.h,v 4.1 2005/01/01 00:12:37 bkorb Exp $
  */
 #ifndef COMPAT_H
 #define COMPAT_H 1
index b28c65e2585f2ba84eb7837e144bf64349361fd5..09e70d3344bcdd40b78f95e8ed7cc4373f948b71 100644 (file)
@@ -5,10 +5,10 @@
 /*
  * Author:           Gary V Vaughan <gvaughan@oranda.demon.co.uk>
  * Created:          Tue Jun 24 15:07:31 1997
- * Last Modified:    $Date: 2004/10/24 19:36:23 $
+ * Last Modified:    $Date: 2005/01/01 00:12:37 $
  *            by: bkorb
  *
- * $Id: pathfind.c,v 2.4 2004/10/24 19:36:23 bkorb Exp $
+ * $Id: pathfind.c,v 4.1 2005/01/01 00:12:37 bkorb Exp $
  */
 
 /* Code: */
index ecd5491828ad628585954ebf1589ddc1c4e004d5..83e02a9ab78abcddda644026795eb4766fa43724 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: enumeration.c,v 2.33 2004/10/02 21:37:46 bkorb Exp $
+ *  $Id: enumeration.c,v 4.1 2005/01/01 00:12:40 bkorb Exp $
  *
  *   Automated Options Paged Usage module.
  *
index e2ea19225b45a3a7ff1e7336a79f54847e33f6d0..87b6a4d57e836360bed2c73bc00c3197858984c4 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: environment.c,v 1.1 2004/10/02 22:47:01 bkorb Exp $
+ *  $Id: environment.c,v 4.1 2005/01/01 00:12:40 bkorb Exp $
  *
  *  This file contains all of the routines that must be linked into
  *  an executable to use the generated option processing.  The optional
index 6e6e9dd160dfed6b13ba6347df7217ff0194c980..8e93df8842306ce869399f89b2f948835c7ee00b 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (genshell.c)
  *  
- *  It has been AutoGen-ed  Sunday October 24, 2004 at 12:40:14 PM PDT
+ *  It has been AutoGen-ed  Friday December 31, 2004 at 08:18:58 PM PST
  *  From the definitions    genshell.def
  *  and the template file   options
  */
index 1ffb21226c8146adffbc66650e2cb52d2d6f2df0..97486d24c64368a036364af03dce42d991abe585 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (genshell.h)
  *  
- *  It has been AutoGen-ed  Sunday October 24, 2004 at 12:40:14 PM PDT
+ *  It has been AutoGen-ed  Friday December 31, 2004 at 08:18:58 PM PST
  *  From the definitions    genshell.def
  *  and the template file   options
  */
index 3e3d4f2740ac36fe5e32cab23abc6fb89d719e23..f11969f737cf3ea5f10ec09c54235ee34be1f8fe 100644 (file)
@@ -1,7 +1,7 @@
 dnl 
 dnl EDIT THIS FILE WITH CAUTION  (libopts.m4)
 dnl 
-dnl It has been AutoGen-ed  Saturday October 30, 2004 at 05:47:01 AM EDT
+dnl It has been AutoGen-ed  Sunday January  9, 2005 at 06:06:21 AM EST
 dnl From the definitions    stdin
 dnl and the template file   conftest.tpl
 dnl
@@ -135,29 +135,6 @@ AC_MSG_ERROR([Cannot find working POSIX regex library])
 ]) # end of AC_DEFUN of LIBOPTS_WITHLIB_REGEX
 
 
-AC_DEFUN([LIBOPTS_RUN_ALLOCATED_CTIME],[
-  AC_MSG_CHECKING([whether ctime() allocates memory for its result])
-  AC_CACHE_VAL([libopts_cv_run_allocated_ctime],[
-  AC_TRY_RUN([@%:@include <time.h>
-int main (int argc, char** argv) {
-   time_t  timeVal = time( (time_t*)NULL );
-   char*   pzTime  = ctime( &timeVal );
-   free( (void*)pzTime );
-   return 0; }],
-    [libopts_cv_run_allocated_ctime=yes],[libopts_cv_run_allocated_ctime=no],[libopts_cv_run_allocated_ctime=no]
-  ) # end of TRY_RUN
-  ]) # end of AC_CACHE_VAL for libopts_cv_run_allocated_ctime
-  AC_MSG_RESULT([${libopts_cv_run_allocated_ctime}])
-
-  if test "X${libopts_cv_run_allocated_ctime}" != Xno
-  then
-    AC_DEFINE([HAVE_ALLOCATED_CTIME],[1],
-        [Define this if ctime() allocates memory for its result])
-  fi
-  
-]) # end of AC_DEFUN of LIBOPTS_RUN_ALLOCATED_CTIME
-
-
 AC_DEFUN([LIBOPTS_RUN_PATHFIND],[
   AC_MSG_CHECKING([whether pathfind(3) works])
   AC_CACHE_VAL([libopts_cv_run_pathfind],[
@@ -270,9 +247,6 @@ AC_DEFUN([INVOKE_LIBOPTS_MACROS],[
   # Check to see if a working libregex can be found.
   LIBOPTS_WITHLIB_REGEX
 
-  # Check to see if ctime() allocates memory for its result.
-  LIBOPTS_RUN_ALLOCATED_CTIME
-
   # Check to see if pathfind(3) works.
   LIBOPTS_RUN_PATHFIND
 
@@ -290,7 +264,7 @@ AC_DEFUN([INVOKE_LIBOPTS_MACROS],[
 dnl @synopsis  LIBOPTS_CHECK
 dnl
 dnl If autoopts-config works, add the linking information to LIBS.
-dnl Otherwise, add ``libopts-23.0.14''
+dnl Otherwise, add ``libopts-23.1.14''
 dnl to SUBDIRS and run all the config tests that the library needs.
 dnl
 AC_DEFUN([LIBOPTS_CHECK],[
@@ -356,7 +330,6 @@ AC_CHECK_HEADERS(dirent.h ndir.h sys/ndir.h, break)
 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
 # ----------------------------------------------------------------------
 AC_CHECK_LIB(gen, pathfind)
-
   AC_MSG_CHECKING([whether autoopts-config can be found])
   AC_ARG_WITH([autoopts-config],
         AC_HELP_STRING([--with-autoopts-config],
index 41f34c15e46d8295380ad64bb2f531cc18bf346a..a9e43df48bc63c1ddf8f122fbbd27ed7d5026201 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: load.c,v 1.5 2004/10/24 19:36:23 bkorb Exp $
+ *  $Id: load.c,v 4.1 2005/01/01 00:12:40 bkorb Exp $
  *
  *  This file contains the routines that deal with processing text strings
  *  for options, either from a NUL-terminated string passed in or from an
@@ -166,7 +166,7 @@ optionMakePath(
          *  allocated and we need to deallocate it.
          */
         if (pzPath != pzProgPath)
-             free( pzPath );
+             free( (void*)pzPath );
     }
 
     /*
index 5b563c707489a4a3f154400fca2fc21175394e10..32dd0e1747dcf4d64ef33563bd364ad95b5ced01 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: makeshell.c,v 2.51 2004/02/16 22:12:50 bkorb Exp $
+ *  $Id: makeshell.c,v 4.1 2005/01/01 00:12:40 bkorb Exp $
  *
  *  This module will interpret the options set in the tOptions
  *  structure and create a Bourne shell script capable of parsing them.
index 61cea0a238c63315ec7c10e1642fba2fc5bbfb22..6d8234a8b693253814585a18303a93a4dd3e7923 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: numeric.c,v 2.14 2004/02/02 03:31:50 bkorb Exp $
+ *  $Id: numeric.c,v 4.1 2005/01/01 00:12:41 bkorb Exp $
  *
  *   Automated Options Paged Usage module.
  *
index 5031e28e52926bda1667fbdbc6ff6ad2b42fe424..301b8330c3b1626f1001b86fca4cdc0f7e32f73b 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (options.h)
  *  
- *  It has been AutoGen-ed  Sunday October 24, 2004 at 12:40:15 PM PDT
+ *  It has been AutoGen-ed  Friday December 31, 2004 at 08:18:58 PM PST
  *  From the definitions    funcs.def
  *  and the template file   options_h
  *
@@ -222,7 +222,7 @@ struct specOptIndex {
 };
 
 #define  OPTIONS_STRUCT_VERSION  94222
-#define  OPTIONS_VERSION_STRING  "23:0:14"
+#define  OPTIONS_VERSION_STRING  "23:1:14"
 #define  OPTIONS_MINIMUM_VERSION 36864
 #define  OPTIONS_MIN_VER_STRING  "9:0:0"
 
@@ -301,7 +301,7 @@ extern void optionFree( tOptions* );
 extern void optionLoadLine( tOptions*, const char* );
 
 
-/* From: autoopts.c line 1032
+/* From: autoopts.c line 1048
  *
  * optionProcess - this is the main option processing routine
  *
index 60a5ef31ebd653e29ff5f82241af512baa3ab520..0c8d17463d89e13c6620d4d3ccab7a69bc2d9d39 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: pgusage.c,v 2.19 2004/02/02 03:31:51 bkorb Exp $
+ *  $Id: pgusage.c,v 4.1 2005/01/01 00:12:42 bkorb Exp $
  *
  *   Automated Options Paged Usage module.
  *
index 9e7abc2d5c5d9bff506e9685f5a8bbb982407647..95c9bc5c34573fd267114899c08867cb88dd856e 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: putshell.c,v 2.26 2004/07/22 02:46:22 bkorb Exp $
+ *  $Id: putshell.c,v 4.1 2005/01/01 00:12:42 bkorb Exp $
  *
  *  This module will interpret the options set in the tOptions
  *  structure and print them to standard out in a fashion that
index a872fbc88a8c7593488538ac7aefc22df2af76a9..4c6d51918116a54781be5f729ce242e4774b3486 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  restore.c  $Id: restore.c,v 2.11 2004/02/02 03:31:51 bkorb Exp $
+ *  restore.c  $Id: restore.c,v 4.1 2005/01/01 00:12:42 bkorb Exp $
  *
  *  This module's routines will save the current option state to memory
  *  and restore it.  If saved prior to the initial optionProcess call,
index 6499b4d541a39ac2f443cca86744d4fa56f7cb4b..34fb66f0989d63f1c4ed1910c6beccb64488fa42 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  save.c  $Id: save.c,v 2.31 2004/07/22 02:46:23 bkorb Exp $
+ *  save.c  $Id: save.c,v 4.2 2005/01/01 04:18:03 bkorb Exp $
  *
  *  This module's routines will take the currently set options and
  *  store them into an ".rc" file for re-interpretation the next
@@ -369,8 +369,9 @@ optionSaveFile( tOptions* pOpts )
             /*
              *  The return values for ctime(), localtime(), and gmtime()
              *  normally point to static data that is overwritten by each call.
+             *  The test to detect allocated ctime, so we leak the memory.
              */
-            free( (void*)pzTime );
+            free( pzTime );
 #endif
         }
 
@@ -451,7 +452,7 @@ optionSaveFile( tOptions* pOpts )
                     /*
                      *  bit flag strings get allocated
                      */
-                    free( (void*)p->pzLastArg );
+                    free( (char*)p->pzLastArg );
                 p->pzLastArg = val;
                 break;
             }
index 9b8d64c20885175d62a1fe70f8c245e557aeedef..4a9e2bce3131f8a3a4fdc6f95194ff0143a5b2e9 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  sort.c  $Id: sort.c,v 2.8 2004/02/02 03:31:51 bkorb Exp $
+ *  sort.c  $Id: sort.c,v 4.1 2005/01/01 00:12:42 bkorb Exp $
  *
  *  This module implements argument sorting.
  */
index f8ae3ccdb022c570bb32032311c9f235c37e1d6b..9a1b7a0b5af22108d2ecbdecaca95a72f34af5a1 100644 (file)
@@ -1,7 +1,7 @@
 
 /*
  *  stack.c
- *  $Id: stack.c,v 2.22 2004/02/02 03:31:51 bkorb Exp $
+ *  $Id: stack.c,v 4.1 2005/01/01 00:12:42 bkorb Exp $
  *  This is a special option processing routine that will save the
  *  argument to an option in a FIFO queue.
  */
@@ -167,12 +167,6 @@ stackOptArg( pOpts, pOptDesc )
     if (pOptDesc->optActualIndex != pOptDesc->optIndex)
         pOptDesc = pOpts->pOptDesc + pOptDesc->optActualIndex;
 
-    /*
-     *  Being called is the most authoritative way to be sure an
-     *  option wants to have its argument values stacked...
-     */
-    pOptDesc->fOptState |= OPTST_STACKED;
-
     /*
      *  IF this is a negated ('+'-marked) option
      *  THEN we unstack the argument
index 2d8fce443c3b82860b77395fc932a2af9d8d669e..20ebfd202cc8d124f9f259ddf23382be6fa0674d 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: streqv.h,v 2.15 2004/10/02 21:37:46 bkorb Exp $
+ *  $Id: streqv.h,v 4.1 2005/01/01 00:12:42 bkorb Exp $
  *
  *  String Equivalence
  *
index 4ff7c4757d5cc6e2380dbc7213ade5454e16dc97..34eb119595d7e2d6934afa93ea9a153442bba793 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: streqvcmp.c,v 2.24 2004/02/02 03:31:51 bkorb Exp $
+ *  $Id: streqvcmp.c,v 4.1 2005/01/01 00:12:42 bkorb Exp $
  *
  *  String Equivalence Comparison
  *
index 1c4e980927ed644f85fb9e4101e94c1ac052ceef..a0390eb814fdbbb15c0caaa19748afddba235b92 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (usage-txt.h)
  *  
- *  It has been AutoGen-ed  Sunday October 24, 2004 at 12:40:14 PM PDT
+ *  It has been AutoGen-ed  Friday December 31, 2004 at 08:18:58 PM PST
  *  From the definitions    usage-txt.def
  *  and the template file   usage-txt.tpl
  *
index 78b679d9a4b582af9f84dc23cd135e528227c545..7b2083de3a83269e1dd64d3981c380bd8a246f3a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  usage.c  $Id: usage.c,v 2.47 2004/02/02 03:31:51 bkorb Exp $
+ *  usage.c  $Id: usage.c,v 4.1 2005/01/01 00:12:42 bkorb Exp $
  *
  *  This module implements the default usage procedure for
  *  Automated Options.  It may be overridden, of course.
index 97c9880c3cf6458450dbaa5f061beff089f9b474..dfc781d659bfc1a3100079be4e92cbd212b5dcfd 100644 (file)
@@ -1,5 +1,5 @@
 
-/*  $Id: version.c,v 2.19 2004/02/02 03:31:51 bkorb Exp $
+/*  $Id: version.c,v 4.1 2005/01/01 00:12:42 bkorb Exp $
  *
  *  This module implements the default usage procedure for
  *  Automated Options.  It may be overridden, of course.
index 3e3d4f2740ac36fe5e32cab23abc6fb89d719e23..f11969f737cf3ea5f10ec09c54235ee34be1f8fe 100644 (file)
@@ -1,7 +1,7 @@
 dnl 
 dnl EDIT THIS FILE WITH CAUTION  (libopts.m4)
 dnl 
-dnl It has been AutoGen-ed  Saturday October 30, 2004 at 05:47:01 AM EDT
+dnl It has been AutoGen-ed  Sunday January  9, 2005 at 06:06:21 AM EST
 dnl From the definitions    stdin
 dnl and the template file   conftest.tpl
 dnl
@@ -135,29 +135,6 @@ AC_MSG_ERROR([Cannot find working POSIX regex library])
 ]) # end of AC_DEFUN of LIBOPTS_WITHLIB_REGEX
 
 
-AC_DEFUN([LIBOPTS_RUN_ALLOCATED_CTIME],[
-  AC_MSG_CHECKING([whether ctime() allocates memory for its result])
-  AC_CACHE_VAL([libopts_cv_run_allocated_ctime],[
-  AC_TRY_RUN([@%:@include <time.h>
-int main (int argc, char** argv) {
-   time_t  timeVal = time( (time_t*)NULL );
-   char*   pzTime  = ctime( &timeVal );
-   free( (void*)pzTime );
-   return 0; }],
-    [libopts_cv_run_allocated_ctime=yes],[libopts_cv_run_allocated_ctime=no],[libopts_cv_run_allocated_ctime=no]
-  ) # end of TRY_RUN
-  ]) # end of AC_CACHE_VAL for libopts_cv_run_allocated_ctime
-  AC_MSG_RESULT([${libopts_cv_run_allocated_ctime}])
-
-  if test "X${libopts_cv_run_allocated_ctime}" != Xno
-  then
-    AC_DEFINE([HAVE_ALLOCATED_CTIME],[1],
-        [Define this if ctime() allocates memory for its result])
-  fi
-  
-]) # end of AC_DEFUN of LIBOPTS_RUN_ALLOCATED_CTIME
-
-
 AC_DEFUN([LIBOPTS_RUN_PATHFIND],[
   AC_MSG_CHECKING([whether pathfind(3) works])
   AC_CACHE_VAL([libopts_cv_run_pathfind],[
@@ -270,9 +247,6 @@ AC_DEFUN([INVOKE_LIBOPTS_MACROS],[
   # Check to see if a working libregex can be found.
   LIBOPTS_WITHLIB_REGEX
 
-  # Check to see if ctime() allocates memory for its result.
-  LIBOPTS_RUN_ALLOCATED_CTIME
-
   # Check to see if pathfind(3) works.
   LIBOPTS_RUN_PATHFIND
 
@@ -290,7 +264,7 @@ AC_DEFUN([INVOKE_LIBOPTS_MACROS],[
 dnl @synopsis  LIBOPTS_CHECK
 dnl
 dnl If autoopts-config works, add the linking information to LIBS.
-dnl Otherwise, add ``libopts-23.0.14''
+dnl Otherwise, add ``libopts-23.1.14''
 dnl to SUBDIRS and run all the config tests that the library needs.
 dnl
 AC_DEFUN([LIBOPTS_CHECK],[
@@ -356,7 +330,6 @@ AC_CHECK_HEADERS(dirent.h ndir.h sys/ndir.h, break)
 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
 # ----------------------------------------------------------------------
 AC_CHECK_LIB(gen, pathfind)
-
   AC_MSG_CHECKING([whether autoopts-config can be found])
   AC_ARG_WITH([autoopts-config],
         AC_HELP_STRING([--with-autoopts-config],