Overview
| Comment: | Updated configure process on Win32 to use DLL base. Fixed "lc_cleanup" causing segfaults. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk | 0.1.18 |
| Files: | files | file ages | folders |
| SHA1: |
793852910fda66d8b960bcc2776584e2 |
| User & Date: | rkeene on 2005-07-18 11:54:01.000 |
| 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: 0.1.19, trunk | |
|
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: 0.1.18, trunk | |
|
2005-03-05
| ||
| 11:30 | Began adding IPv6 support check-in: 2ae4c0df0a user: rkeene tags: 0.1.17, trunk | |
Changes
Modified aclocal.m4
from [c82f946580]
to [f808bf7d3c].
| ︙ | ︙ | |||
123 124 125 126 127 128 129 | SHOBJEXT="sl" ;; mingw32msvc*) SHOBJEXT="dll" SHOBJFLAGS="-DPIC" CFLAGS="$CFLAGS -mno-cygwin -mms-bitfields" CPPFLAGS="$CPPFLAGS -mno-cygwin -mms-bitfields" | | | 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | SHOBJEXT="sl" ;; mingw32msvc*) SHOBJEXT="dll" SHOBJFLAGS="-DPIC" CFLAGS="$CFLAGS -mno-cygwin -mms-bitfields" CPPFLAGS="$CPPFLAGS -mno-cygwin -mms-bitfields" SHOBJLDFLAGS='-shared -Wl,--dll -Wl,--enable-auto-image-base -Wl,--output-def,$[@].def,--out-implib,$[@].a' ;; cygwin*) SHOBJEXT="dll" SHOBJFLAGS="-fPIC -DPIC" CFLAGS="$CFLAGS -mms-bitfields" CPPFLAGS="$CPPFLAGS -mms-bitfields" SHOBJLDFLAGS='-shared -Wl,--enable-auto-image-base -Wl,--output-def,$[@].def,--out-implib,$[@].a' |
| ︙ | ︙ |
Modified configure
from [148d79f3e2]
to [243499a4d9].
1 2 3 | #! /bin/sh # From configure.ac Revision . # Guess values for system-dependent variables and create Makefiles. | | | 1 2 3 4 5 6 7 8 9 10 11 | #! /bin/sh # From configure.ac Revision . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59 for libconfig 0.1.18. # # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## |
| ︙ | ︙ | |||
264 265 266 267 268 269 270 |
# This variable seems obsolete. It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}
# Identity of this package.
PACKAGE_NAME='libconfig'
PACKAGE_TARNAME='libconfig'
| | | | 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 |
# This variable seems obsolete. It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}
# Identity of this package.
PACKAGE_NAME='libconfig'
PACKAGE_TARNAME='libconfig'
PACKAGE_VERSION='0.1.18'
PACKAGE_STRING='libconfig 0.1.18'
PACKAGE_BUGREPORT=''
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
|
| ︙ | ︙ | |||
774 775 776 777 778 779 780 | # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF | | | 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 | # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures libconfig 0.1.18 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. |
| ︙ | ︙ | |||
835 836 837 838 839 840 841 | --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in | | | 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 |
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
_ACEOF
fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of libconfig 0.1.18:";;
esac
cat <<\_ACEOF
Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-small Enable small build of libconfig. (disabled)
|
| ︙ | ︙ | |||
956 957 958 959 960 961 962 |
cd $ac_popdir
done
fi
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
| | | | 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 |
cd $ac_popdir
done
fi
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
libconfig configure 0.1.18
generated by GNU Autoconf 2.59
Copyright (C) 2003 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
exit 0
fi
exec 5>config.log
cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libconfig $as_me 0.1.18, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
_ACEOF
{
cat <<_ASUNAME
|
| ︙ | ︙ | |||
1416 1417 1418 1419 1420 1421 1422 | SHOBJEXT="sl" ;; mingw32msvc*) SHOBJEXT="dll" SHOBJFLAGS="-DPIC" CFLAGS="$CFLAGS -mno-cygwin -mms-bitfields" CPPFLAGS="$CPPFLAGS -mno-cygwin -mms-bitfields" | | | 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 | SHOBJEXT="sl" ;; mingw32msvc*) SHOBJEXT="dll" SHOBJFLAGS="-DPIC" CFLAGS="$CFLAGS -mno-cygwin -mms-bitfields" CPPFLAGS="$CPPFLAGS -mno-cygwin -mms-bitfields" SHOBJLDFLAGS='-shared -Wl,--dll -Wl,--enable-auto-image-base -Wl,--output-def,$@.def,--out-implib,$@.a' ;; cygwin*) SHOBJEXT="dll" SHOBJFLAGS="-fPIC -DPIC" CFLAGS="$CFLAGS -mms-bitfields" CPPFLAGS="$CPPFLAGS -mms-bitfields" SHOBJLDFLAGS='-shared -Wl,--enable-auto-image-base -Wl,--output-def,$@.def,--out-implib,$@.a' |
| ︙ | ︙ | |||
17447 17448 17449 17450 17451 17452 17453 | echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX } >&5 cat >&5 <<_CSEOF | | | 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 | echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX } >&5 cat >&5 <<_CSEOF This file was extended by libconfig $as_me 0.1.18, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ |
| ︙ | ︙ | |||
17507 17508 17509 17510 17511 17512 17513 | $config_headers Report bugs to <bug-autoconf@gnu.org>." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ | | | 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 | $config_headers Report bugs to <bug-autoconf@gnu.org>." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ libconfig config.status 0.1.18 configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2003 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." srcdir=$srcdir |
| ︙ | ︙ |
Modified configure.ac
from [f782ded3ab]
to [9c0f5749ef].
1 | AC_REVISION($Revision $) | | | 1 2 3 4 5 6 7 8 9 | AC_REVISION($Revision $) AC_INIT(libconfig, 0.1.18) AC_CONFIG_HEADER(config.h) dnl Find out about the host OS DC_CHK_OS_INFO dnl Checks for programs. AC_PROG_CC |
| ︙ | ︙ |
Modified libconfig.c
from [94dfe70fb7]
to [9adb43042b].
| ︙ | ︙ | |||
48 49 50 51 52 53 54 |
dataval = data;
*dataval = strdup(value);
return(0);
}
static int lc_process_var_cidr(void *data, const char *value) {
| | > > > | 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
dataval = data;
*dataval = strdup(value);
return(0);
}
static int lc_process_var_cidr(void *data, const char *value) {
return(-1);
}
static int lc_process_var_hostname6(void *data, const char *value) {
return(-1);
}
static int lc_process_var_hostname4(void *data, const char *value) {
return(-1);
}
static int lc_process_var_ip6(void *data, const char *value) {
return(-1);
}
static int lc_process_var_ip4(void *data, const char *value) {
uint32_t *dataval, retval = 0;
const char *dotptr = NULL;
int tmpval = -1;
// int dotcount
|
| ︙ | ︙ | |||
892 893 894 895 896 897 898 899 900 901 902 903 904 905 |
next = handler->_next;
free(handler);
handler = next;
}
return;
}
int lc_process(int argc, char **argv, const char *appname, lc_conf_type_t type, const char *extra) {
int retval = 0, chkretval = 0;
| > > | 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 |
next = handler->_next;
free(handler);
handler = next;
}
varhandlers = NULL;
return;
}
int lc_process(int argc, char **argv, const char *appname, lc_conf_type_t type, const char *extra) {
int retval = 0, chkretval = 0;
|
| ︙ | ︙ |