Check-in [793852910f]
Overview
Comment:Updated configure process on Win32 to use DLL base. Fixed "lc_cleanup" causing segfaults.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | 0.1.18
Files: files | file ages | folders
SHA1: 793852910fda66d8b960bcc2776584e2c2ff0679
User & Date: rkeene on 2005-07-18 11:54:01
Other Links: manifest | tags
Context
2005-09-30
08:27
Added filename and line numbers to error messages. Began adding support for lists of options rather than just one option per item. libconfig 0.1.19 check-in: 730308bffd user: rkeene tags: trunk, 0.1.19
2005-07-18
11:54
Updated configure process on Win32 to use DLL base. Fixed "lc_cleanup" causing segfaults. check-in: 793852910f user: rkeene tags: trunk, 0.1.18
2005-03-05
11:30
Began adding IPv6 support check-in: 2ae4c0df0a user: rkeene tags: trunk, 0.1.17
Changes

Modified aclocal.m4 from [c82f946580] to [f808bf7d3c].

   123    123   			SHOBJEXT="sl"
   124    124   			;;
   125    125   		mingw32msvc*)
   126    126   			SHOBJEXT="dll"
   127    127   			SHOBJFLAGS="-DPIC"
   128    128   			CFLAGS="$CFLAGS -mno-cygwin -mms-bitfields"
   129    129   			CPPFLAGS="$CPPFLAGS -mno-cygwin -mms-bitfields"
   130         -			SHOBJLDFLAGS='-shared -Wl,--enable-auto-image-base -Wl,--output-def,$[@].def,--out-implib,$[@].a'
          130  +			SHOBJLDFLAGS='-shared -Wl,--dll -Wl,--enable-auto-image-base -Wl,--output-def,$[@].def,--out-implib,$[@].a'
   131    131   			;;
   132    132   		cygwin*)
   133    133   			SHOBJEXT="dll"
   134    134   			SHOBJFLAGS="-fPIC -DPIC"
   135    135   			CFLAGS="$CFLAGS -mms-bitfields"
   136    136   			CPPFLAGS="$CPPFLAGS -mms-bitfields"
   137    137   			SHOBJLDFLAGS='-shared -Wl,--enable-auto-image-base -Wl,--output-def,$[@].def,--out-implib,$[@].a'

Modified configure from [148d79f3e2] to [243499a4d9].

     1      1   #! /bin/sh
     2      2   # From configure.ac Revision .
     3      3   # Guess values for system-dependent variables and create Makefiles.
     4         -# Generated by GNU Autoconf 2.59 for libconfig 0.1.17.
            4  +# Generated by GNU Autoconf 2.59 for libconfig 0.1.18.
     5      5   #
     6      6   # Copyright (C) 2003 Free Software Foundation, Inc.
     7      7   # This configure script is free software; the Free Software Foundation
     8      8   # gives unlimited permission to copy, distribute and modify it.
     9      9   ## --------------------- ##
    10     10   ## M4sh Initialization.  ##
    11     11   ## --------------------- ##
................................................................................
   264    264   # This variable seems obsolete.  It should probably be removed, and
   265    265   # only ac_max_sed_lines should be used.
   266    266   : ${ac_max_here_lines=38}
   267    267   
   268    268   # Identity of this package.
   269    269   PACKAGE_NAME='libconfig'
   270    270   PACKAGE_TARNAME='libconfig'
   271         -PACKAGE_VERSION='0.1.17'
   272         -PACKAGE_STRING='libconfig 0.1.17'
          271  +PACKAGE_VERSION='0.1.18'
          272  +PACKAGE_STRING='libconfig 0.1.18'
   273    273   PACKAGE_BUGREPORT=''
   274    274   
   275    275   # Factoring default headers for most tests.
   276    276   ac_includes_default="\
   277    277   #include <stdio.h>
   278    278   #if HAVE_SYS_TYPES_H
   279    279   # include <sys/types.h>
................................................................................
   774    774   #
   775    775   # Report the --help message.
   776    776   #
   777    777   if test "$ac_init_help" = "long"; then
   778    778     # Omit some internal or obsolete options to make the list less imposing.
   779    779     # This message is too long to be a string in the A/UX 3.1 sh.
   780    780     cat <<_ACEOF
   781         -\`configure' configures libconfig 0.1.17 to adapt to many kinds of systems.
          781  +\`configure' configures libconfig 0.1.18 to adapt to many kinds of systems.
   782    782   
   783    783   Usage: $0 [OPTION]... [VAR=VALUE]...
   784    784   
   785    785   To assign environment variables (e.g., CC, CFLAGS...), specify them as
   786    786   VAR=VALUE.  See below for descriptions of some of the useful variables.
   787    787   
   788    788   Defaults for the options are specified in brackets.
................................................................................
   835    835     --build=BUILD     configure for building on BUILD [guessed]
   836    836     --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   837    837   _ACEOF
   838    838   fi
   839    839   
   840    840   if test -n "$ac_init_help"; then
   841    841     case $ac_init_help in
   842         -     short | recursive ) echo "Configuration of libconfig 0.1.17:";;
          842  +     short | recursive ) echo "Configuration of libconfig 0.1.18:";;
   843    843      esac
   844    844     cat <<\_ACEOF
   845    845   
   846    846   Optional Features:
   847    847     --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   848    848     --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   849    849     --enable-small          Enable small build of libconfig. (disabled)
................................................................................
   956    956       cd $ac_popdir
   957    957     done
   958    958   fi
   959    959   
   960    960   test -n "$ac_init_help" && exit 0
   961    961   if $ac_init_version; then
   962    962     cat <<\_ACEOF
   963         -libconfig configure 0.1.17
          963  +libconfig configure 0.1.18
   964    964   generated by GNU Autoconf 2.59
   965    965   
   966    966   Copyright (C) 2003 Free Software Foundation, Inc.
   967    967   This configure script is free software; the Free Software Foundation
   968    968   gives unlimited permission to copy, distribute and modify it.
   969    969   _ACEOF
   970    970     exit 0
   971    971   fi
   972    972   exec 5>config.log
   973    973   cat >&5 <<_ACEOF
   974    974   This file contains any messages produced by compilers while
   975    975   running configure, to aid debugging if configure makes a mistake.
   976    976   
   977         -It was created by libconfig $as_me 0.1.17, which was
          977  +It was created by libconfig $as_me 0.1.18, which was
   978    978   generated by GNU Autoconf 2.59.  Invocation command line was
   979    979   
   980    980     $ $0 $@
   981    981   
   982    982   _ACEOF
   983    983   {
   984    984   cat <<_ASUNAME
................................................................................
  1416   1416   			SHOBJEXT="sl"
  1417   1417   			;;
  1418   1418   		mingw32msvc*)
  1419   1419   			SHOBJEXT="dll"
  1420   1420   			SHOBJFLAGS="-DPIC"
  1421   1421   			CFLAGS="$CFLAGS -mno-cygwin -mms-bitfields"
  1422   1422   			CPPFLAGS="$CPPFLAGS -mno-cygwin -mms-bitfields"
  1423         -			SHOBJLDFLAGS='-shared -Wl,--enable-auto-image-base -Wl,--output-def,$@.def,--out-implib,$@.a'
         1423  +			SHOBJLDFLAGS='-shared -Wl,--dll -Wl,--enable-auto-image-base -Wl,--output-def,$@.def,--out-implib,$@.a'
  1424   1424   			;;
  1425   1425   		cygwin*)
  1426   1426   			SHOBJEXT="dll"
  1427   1427   			SHOBJFLAGS="-fPIC -DPIC"
  1428   1428   			CFLAGS="$CFLAGS -mms-bitfields"
  1429   1429   			CPPFLAGS="$CPPFLAGS -mms-bitfields"
  1430   1430   			SHOBJLDFLAGS='-shared -Wl,--enable-auto-image-base -Wl,--output-def,$@.def,--out-implib,$@.a'
................................................................................
 17447  17447     echo
 17448  17448     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 17449  17449   ## Running $as_me. ##
 17450  17450   _ASBOX
 17451  17451   } >&5
 17452  17452   cat >&5 <<_CSEOF
 17453  17453   
 17454         -This file was extended by libconfig $as_me 0.1.17, which was
        17454  +This file was extended by libconfig $as_me 0.1.18, which was
 17455  17455   generated by GNU Autoconf 2.59.  Invocation command line was
 17456  17456   
 17457  17457     CONFIG_FILES    = $CONFIG_FILES
 17458  17458     CONFIG_HEADERS  = $CONFIG_HEADERS
 17459  17459     CONFIG_LINKS    = $CONFIG_LINKS
 17460  17460     CONFIG_COMMANDS = $CONFIG_COMMANDS
 17461  17461     $ $0 $@
................................................................................
 17507  17507   $config_headers
 17508  17508   
 17509  17509   Report bugs to <bug-autoconf@gnu.org>."
 17510  17510   _ACEOF
 17511  17511   
 17512  17512   cat >>$CONFIG_STATUS <<_ACEOF
 17513  17513   ac_cs_version="\\
 17514         -libconfig config.status 0.1.17
        17514  +libconfig config.status 0.1.18
 17515  17515   configured by $0, generated by GNU Autoconf 2.59,
 17516  17516     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 17517  17517   
 17518  17518   Copyright (C) 2003 Free Software Foundation, Inc.
 17519  17519   This config.status script is free software; the Free Software Foundation
 17520  17520   gives unlimited permission to copy, distribute and modify it."
 17521  17521   srcdir=$srcdir

Modified configure.ac from [f782ded3ab] to [9c0f5749ef].

     1      1   AC_REVISION($Revision $)
     2         -AC_INIT(libconfig, 0.1.17)
            2  +AC_INIT(libconfig, 0.1.18)
     3      3   AC_CONFIG_HEADER(config.h)
     4      4   
     5      5   dnl Find out about the host OS
     6      6   DC_CHK_OS_INFO
     7      7   
     8      8   dnl Checks for programs.
     9      9   AC_PROG_CC

Modified libconfig.c from [94dfe70fb7] to [9adb43042b].

    48     48   	dataval = data;
    49     49   	*dataval = strdup(value);
    50     50   
    51     51   	return(0);
    52     52   }
    53     53   
    54     54   static int lc_process_var_cidr(void *data, const char *value) {
    55         -	return(0);
           55  +	return(-1);
    56     56   }
    57     57   
    58     58   static int lc_process_var_hostname6(void *data, const char *value) {
           59  +	return(-1);
    59     60   }
    60     61   
    61     62   static int lc_process_var_hostname4(void *data, const char *value) {
           63  +	return(-1);
    62     64   }
    63     65   
    64     66   static int lc_process_var_ip6(void *data, const char *value) {
           67  +	return(-1);
    65     68   }
    66     69   
    67     70   static int lc_process_var_ip4(void *data, const char *value) {
    68     71   	uint32_t *dataval, retval = 0;
    69     72   	const char *dotptr = NULL;
    70     73   	int tmpval = -1;
    71     74   //	int dotcount
................................................................................
   892    895   
   893    896   		next = handler->_next;
   894    897   
   895    898   		free(handler);
   896    899   
   897    900   		handler = next;
   898    901   	}
          902  +
          903  +	varhandlers = NULL;
   899    904   
   900    905   	return;
   901    906   }
   902    907   
   903    908   int lc_process(int argc, char **argv, const char *appname, lc_conf_type_t type, const char *extra) {
   904    909   	int retval = 0, chkretval = 0;
   905    910