[core] remove libdingaling from tree
This commit is contained in:
parent
9468ff746a
commit
01c1e74f36
9
LICENSE
9
LICENSE
|
@ -1595,15 +1595,6 @@ Files: libs/silk/*
|
||||||
Copyright: 2006-2011, Skype Limited.
|
Copyright: 2006-2011, Skype Limited.
|
||||||
License: BSD-2-clause
|
License: BSD-2-clause
|
||||||
|
|
||||||
Files: libs/libdingaling/*
|
|
||||||
Copyright: 2005-2014, Anthony Minessale II <anthm@freeswitch.org>
|
|
||||||
2001-2003 Allan Saddi <allan@saddi.com>
|
|
||||||
License: MPL-1.1
|
|
||||||
|
|
||||||
Files: libs/libdingaling/src/sha1.[ch]
|
|
||||||
Copyright: 2001-2003 Allan Saddi <allan@saddi.com>
|
|
||||||
License: BSD-2-clause
|
|
||||||
|
|
||||||
Files: libs/libcodec2/*
|
Files: libs/libcodec2/*
|
||||||
Copyright: 1990-2010 David Rowe
|
Copyright: 1990-2010 David Rowe
|
||||||
1990-2010 David Rowe 2009
|
1990-2010 David Rowe 2009
|
||||||
|
|
|
@ -685,7 +685,7 @@ yesdepends:
|
||||||
rm .nodepends
|
rm .nodepends
|
||||||
|
|
||||||
iksemel-dep:
|
iksemel-dep:
|
||||||
make -C src/mod/endpoints/mod_dingaling deps
|
make -C src/mod/formats/mod_ssml deps
|
||||||
|
|
||||||
core: $(switch_builddir)/modules.conf src/include/switch_version.h $(CORE_LIBS)
|
core: $(switch_builddir)/modules.conf src/include/switch_version.h $(CORE_LIBS)
|
||||||
$(MAKE) $(AM_MAKEFLAGS) libfreeswitch.la
|
$(MAKE) $(AM_MAKEFLAGS) libfreeswitch.la
|
||||||
|
@ -765,7 +765,7 @@ iks-reconf:
|
||||||
cd libs/iksemel && $(MAKE) clean
|
cd libs/iksemel && $(MAKE) clean
|
||||||
cd libs/iksemel && autoreconf -fi
|
cd libs/iksemel && autoreconf -fi
|
||||||
cd libs/iksemel && sh ./configure.gnu $(MY_DEFAULT_ARGS)
|
cd libs/iksemel && sh ./configure.gnu $(MY_DEFAULT_ARGS)
|
||||||
$(MAKE) mod_dingaling-clean
|
$(MAKE) mod_ssml-clean
|
||||||
|
|
||||||
cluecon:
|
cluecon:
|
||||||
@clear
|
@clear
|
||||||
|
|
|
@ -10,7 +10,7 @@ BGJOB=false
|
||||||
VERBOSE=false
|
VERBOSE=false
|
||||||
BASEDIR=`pwd`;
|
BASEDIR=`pwd`;
|
||||||
LIBDIR=${BASEDIR}/libs;
|
LIBDIR=${BASEDIR}/libs;
|
||||||
SUBDIRS="apr libzrtp iksemel libdingaling srtp unimrcp fs";
|
SUBDIRS="apr libzrtp iksemel srtp unimrcp fs";
|
||||||
|
|
||||||
while getopts 'jhd:v' o; do
|
while getopts 'jhd:v' o; do
|
||||||
case "$o" in
|
case "$o" in
|
||||||
|
|
|
@ -87,7 +87,6 @@ dialplans/mod_dialplan_asterisk
|
||||||
dialplans/mod_dialplan_xml
|
dialplans/mod_dialplan_xml
|
||||||
#directories/mod_ldap
|
#directories/mod_ldap
|
||||||
#endpoints/mod_alsa
|
#endpoints/mod_alsa
|
||||||
#endpoints/mod_dingaling
|
|
||||||
#endpoints/mod_gsmopen
|
#endpoints/mod_gsmopen
|
||||||
#endpoints/mod_h323
|
#endpoints/mod_h323
|
||||||
#endpoints/mod_khomp
|
#endpoints/mod_khomp
|
||||||
|
|
|
@ -84,7 +84,6 @@ dialplans/mod_dialplan_directory
|
||||||
dialplans/mod_dialplan_xml
|
dialplans/mod_dialplan_xml
|
||||||
directories/mod_ldap
|
directories/mod_ldap
|
||||||
#endpoints/mod_alsa
|
#endpoints/mod_alsa
|
||||||
endpoints/mod_dingaling
|
|
||||||
#endpoints/mod_gsmopen
|
#endpoints/mod_gsmopen
|
||||||
#endpoints/mod_h323
|
#endpoints/mod_h323
|
||||||
#endpoints/mod_khomp
|
#endpoints/mod_khomp
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
<configuration name="dingaling.conf" description="XMPP Jingle Endpoint">
|
|
||||||
<settings>
|
|
||||||
<param name="debug" value="0"/>
|
|
||||||
<param name="codec-prefs" value="PCMU"/>
|
|
||||||
</settings>
|
|
||||||
|
|
||||||
<X-PRE-PROCESS cmd="include" data="../jingle_profiles/*.xml"/>
|
|
||||||
|
|
||||||
</configuration>
|
|
|
@ -1088,7 +1088,7 @@ if test "x${ax_cv_c_compiler_vendor}" = "xclang" ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Tested and fixed lot of modules, but some are untested. Will be added back when the core team decide it ready
|
# Tested and fixed lot of modules, but some are untested. Will be added back when the core team decide it ready
|
||||||
# Untested modules : mod_osp mod_soundtouch mod_sangoma_codec mod_dingaling mod_opal mod_h323 mod_khomp
|
# Untested modules : mod_osp mod_soundtouch mod_sangoma_codec mod_opal mod_h323 mod_khomp
|
||||||
# mod_unimrcp mod_cepstral mod_erlang_event mod_snmp mod_perl mod_java mod_managed
|
# mod_unimrcp mod_cepstral mod_erlang_event mod_snmp mod_perl mod_java mod_managed
|
||||||
#
|
#
|
||||||
#saved_CFLAGS="$CFLAGS"
|
#saved_CFLAGS="$CFLAGS"
|
||||||
|
@ -2173,7 +2173,6 @@ AC_CONFIG_FILES([Makefile
|
||||||
src/mod/dialplans/mod_dialplan_xml/Makefile
|
src/mod/dialplans/mod_dialplan_xml/Makefile
|
||||||
src/mod/directories/mod_ldap/Makefile
|
src/mod/directories/mod_ldap/Makefile
|
||||||
src/mod/endpoints/mod_alsa/Makefile
|
src/mod/endpoints/mod_alsa/Makefile
|
||||||
src/mod/endpoints/mod_dingaling/Makefile
|
|
||||||
src/mod/endpoints/mod_gsmopen/Makefile
|
src/mod/endpoints/mod_gsmopen/Makefile
|
||||||
src/mod/endpoints/mod_h323/Makefile
|
src/mod/endpoints/mod_h323/Makefile
|
||||||
src/mod/endpoints/mod_khomp/Makefile
|
src/mod/endpoints/mod_khomp/Makefile
|
||||||
|
@ -2332,7 +2331,6 @@ if test "$use_system_apr" != "yes"; then
|
||||||
AC_CONFIG_SUBDIRS([libs/apr])
|
AC_CONFIG_SUBDIRS([libs/apr])
|
||||||
fi
|
fi
|
||||||
AC_CONFIG_SUBDIRS([libs/iksemel])
|
AC_CONFIG_SUBDIRS([libs/iksemel])
|
||||||
#AC_CONFIG_SUBDIRS([libs/libdingaling])
|
|
||||||
#AC_CONFIG_SUBDIRS([libs/unimrcp])
|
#AC_CONFIG_SUBDIRS([libs/unimrcp])
|
||||||
if test "x${enable_zrtp}" = "xyes"; then
|
if test "x${enable_zrtp}" = "xyes"; then
|
||||||
AC_CONFIG_SUBDIRS([libs/libzrtp])
|
AC_CONFIG_SUBDIRS([libs/libzrtp])
|
||||||
|
|
|
@ -657,7 +657,6 @@ Depends: \${misc:Depends}, freeswitch (= \${binary:Version}),
|
||||||
freeswitch-mod-dialplan-asterisk (= \${binary:Version}),
|
freeswitch-mod-dialplan-asterisk (= \${binary:Version}),
|
||||||
freeswitch-mod-dialplan-directory (= \${binary:Version}),
|
freeswitch-mod-dialplan-directory (= \${binary:Version}),
|
||||||
freeswitch-mod-dialplan-xml (= \${binary:Version}),
|
freeswitch-mod-dialplan-xml (= \${binary:Version}),
|
||||||
freeswitch-mod-dingaling (= \${binary:Version}),
|
|
||||||
freeswitch-mod-loopback (= \${binary:Version}),
|
freeswitch-mod-loopback (= \${binary:Version}),
|
||||||
freeswitch-mod-portaudio (= \${binary:Version}),
|
freeswitch-mod-portaudio (= \${binary:Version}),
|
||||||
freeswitch-mod-rtc (= \${binary:Version}),
|
freeswitch-mod-rtc (= \${binary:Version}),
|
||||||
|
@ -896,7 +895,6 @@ Depends: \${misc:Depends}, freeswitch (= \${binary:Version}),
|
||||||
freeswitch-mod-dialplan-asterisk-dbg (= \${binary:Version}),
|
freeswitch-mod-dialplan-asterisk-dbg (= \${binary:Version}),
|
||||||
freeswitch-mod-dialplan-directory-dbg (= \${binary:Version}),
|
freeswitch-mod-dialplan-directory-dbg (= \${binary:Version}),
|
||||||
freeswitch-mod-dialplan-xml-dbg (= \${binary:Version}),
|
freeswitch-mod-dialplan-xml-dbg (= \${binary:Version}),
|
||||||
freeswitch-mod-dingaling-dbg (= \${binary:Version}),
|
|
||||||
freeswitch-mod-loopback-dbg (= \${binary:Version}),
|
freeswitch-mod-loopback-dbg (= \${binary:Version}),
|
||||||
freeswitch-mod-portaudio-dbg (= \${binary:Version}),
|
freeswitch-mod-portaudio-dbg (= \${binary:Version}),
|
||||||
freeswitch-mod-rtc-dbg (= \${binary:Version}),
|
freeswitch-mod-rtc-dbg (= \${binary:Version}),
|
||||||
|
|
|
@ -431,10 +431,6 @@ Description: mod_alsa
|
||||||
Adds mod_alsa.
|
Adds mod_alsa.
|
||||||
Build-Depends: libasound2-dev
|
Build-Depends: libasound2-dev
|
||||||
|
|
||||||
Module: endpoints/mod_dingaling
|
|
||||||
Description: mod_dingaling
|
|
||||||
Adds mod_dingaling.
|
|
||||||
|
|
||||||
Module: endpoints/mod_gsmopen
|
Module: endpoints/mod_gsmopen
|
||||||
Description: mod_gsmopen
|
Description: mod_gsmopen
|
||||||
Adds mod_gsmopen.
|
Adds mod_gsmopen.
|
||||||
|
|
|
@ -1595,15 +1595,6 @@ Files: libs/silk/*
|
||||||
Copyright: 2006-2011, Skype Limited.
|
Copyright: 2006-2011, Skype Limited.
|
||||||
License: BSD-2-clause
|
License: BSD-2-clause
|
||||||
|
|
||||||
Files: libs/libdingaling/*
|
|
||||||
Copyright: 2005-2014, Anthony Minessale II <anthm@freeswitch.org>
|
|
||||||
2001-2003 Allan Saddi <allan@saddi.com>
|
|
||||||
License: MPL-1.1
|
|
||||||
|
|
||||||
Files: libs/libdingaling/src/sha1.[ch]
|
|
||||||
Copyright: 2001-2003 Allan Saddi <allan@saddi.com>
|
|
||||||
License: BSD-2-clause
|
|
||||||
|
|
||||||
Files: libs/libcodec2/*
|
Files: libs/libcodec2/*
|
||||||
Copyright: 1990-2010 David Rowe
|
Copyright: 1990-2010 David Rowe
|
||||||
1990-2010 David Rowe 2009
|
1990-2010 David Rowe 2009
|
||||||
|
|
|
@ -841,15 +841,6 @@ PostgreSQL native support for FreeSWITCH.
|
||||||
# FreeSWITCH Endpoint Modules
|
# FreeSWITCH Endpoint Modules
|
||||||
######################################################################################################################
|
######################################################################################################################
|
||||||
|
|
||||||
%package endpoint-dingaling
|
|
||||||
Summary: Generic XMPP support for FreeSWITCH open source telephony platform
|
|
||||||
Group: System/Libraries
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
|
|
||||||
%description endpoint-dingaling
|
|
||||||
XMPP support for FreeSWITCH open source telephony platform. Allows FreeSWITCH
|
|
||||||
to be used as a client for GoogleTalk or other XMPP Servers.
|
|
||||||
|
|
||||||
#%package endpoint-gsmopen
|
#%package endpoint-gsmopen
|
||||||
#Summary: Generic GSM endpoint support for FreeSWITCH open source telephony platform
|
#Summary: Generic GSM endpoint support for FreeSWITCH open source telephony platform
|
||||||
#Group: System/Libraries
|
#Group: System/Libraries
|
||||||
|
@ -1485,7 +1476,7 @@ DIRECTORIES_MODULES=""
|
||||||
# Endpoints
|
# Endpoints
|
||||||
#
|
#
|
||||||
######################################################################################################################
|
######################################################################################################################
|
||||||
ENDPOINTS_MODULES="endpoints/mod_dingaling \
|
ENDPOINTS_MODULES=" \
|
||||||
endpoints/mod_loopback endpoints/mod_portaudio endpoints/mod_rtmp \
|
endpoints/mod_loopback endpoints/mod_portaudio endpoints/mod_rtmp \
|
||||||
endpoints/mod_skinny endpoints/mod_verto endpoints/mod_rtc endpoints/mod_sofia"
|
endpoints/mod_skinny endpoints/mod_verto endpoints/mod_rtc endpoints/mod_sofia"
|
||||||
|
|
||||||
|
@ -1920,7 +1911,6 @@ fi
|
||||||
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/curl.conf.xml
|
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/curl.conf.xml
|
||||||
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/db.conf.xml
|
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/db.conf.xml
|
||||||
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/dialplan_directory.conf.xml
|
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/dialplan_directory.conf.xml
|
||||||
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/dingaling.conf.xml
|
|
||||||
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/directory.conf.xml
|
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/directory.conf.xml
|
||||||
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/distributor.conf.xml
|
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/distributor.conf.xml
|
||||||
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/easyroute.conf.xml
|
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/easyroute.conf.xml
|
||||||
|
@ -2258,9 +2248,6 @@ fi
|
||||||
#
|
#
|
||||||
######################################################################################################################
|
######################################################################################################################
|
||||||
|
|
||||||
%files endpoint-dingaling
|
|
||||||
%{MODINSTDIR}/mod_dingaling.so*
|
|
||||||
|
|
||||||
#%files endpoint-gsmopen
|
#%files endpoint-gsmopen
|
||||||
#%{MODINSTDIR}/mod_gsmopen.so*
|
#%{MODINSTDIR}/mod_gsmopen.so*
|
||||||
|
|
||||||
|
|
|
@ -199,11 +199,6 @@ opal
|
||||||
/libcodec2/unittest/vqtrainjnd
|
/libcodec2/unittest/vqtrainjnd
|
||||||
/libcodec2/unittest/vqtrainph
|
/libcodec2/unittest/vqtrainph
|
||||||
/libcodec2/unittest/vqtrainsp
|
/libcodec2/unittest/vqtrainsp
|
||||||
/libdingaling/build/compile
|
|
||||||
/libdingaling/Makefile
|
|
||||||
/libdingaling/Makefile.in
|
|
||||||
/libdingaling/src/config.h
|
|
||||||
/libdingaling/src/stamp-h1
|
|
||||||
/libg722_1/config-h.in
|
/libg722_1/config-h.in
|
||||||
/libg722_1/doc/Makefile
|
/libg722_1/doc/Makefile
|
||||||
/libg722_1/doc/Makefile.in
|
/libg722_1/doc/Makefile.in
|
||||||
|
@ -702,12 +697,6 @@ opal
|
||||||
|
|
||||||
# build products we should remove
|
# build products we should remove
|
||||||
!/iksemel/ltmain.sh
|
!/iksemel/ltmain.sh
|
||||||
!/libdingaling/config.guess
|
|
||||||
!/libdingaling/config.sub
|
|
||||||
!/libdingaling/depcomp
|
|
||||||
!/libdingaling/install-sh
|
|
||||||
!/libdingaling/ltmain.sh
|
|
||||||
!/libdingaling/missing
|
|
||||||
!/libg722_1/config/depcomp
|
!/libg722_1/config/depcomp
|
||||||
!/libg722_1/config/missing
|
!/libg722_1/config/missing
|
||||||
!/tiff-*/config/depcomp
|
!/tiff-*/config/depcomp
|
||||||
|
@ -730,7 +719,6 @@ unimrcp/build/compile
|
||||||
portaudio.*.log
|
portaudio.*.log
|
||||||
apr/configure
|
apr/configure
|
||||||
iksemel/configure
|
iksemel/configure
|
||||||
libdingaling/configure
|
|
||||||
libyuv/Makefile
|
libyuv/Makefile
|
||||||
libyuv/convert
|
libyuv/convert
|
||||||
srtp/configure
|
srtp/configure
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Fri Mar 9 17:53:09 CST 2007
|
|
|
@ -1,18 +0,0 @@
|
||||||
The Initial Developer of the Original Code is
|
|
||||||
Anthony Minessale II <anthm@freeswitch.org>
|
|
||||||
Portions created by the Initial Developer are Copyright (C)
|
|
||||||
the Initial Developer. All Rights Reserved.
|
|
||||||
|
|
||||||
The PRIMARY AUTHORS are (and/or have been):
|
|
||||||
|
|
||||||
Anthony Minessale II <anthm@freeswitch.org> - Primary developer of all core components
|
|
||||||
and many of the included modules. Much of freeswitch is based on his work.
|
|
||||||
|
|
||||||
Michael Jerris <mike@jerris.com> - Windows porter and responsible for the
|
|
||||||
windows\msvc build system.
|
|
||||||
|
|
||||||
|
|
||||||
And here is an inevitably incomplete list of MUCH-APPRECIATED CONTRIBUTORS --
|
|
||||||
people who have submitted patches, reported bugs, and generally made Freeswitch
|
|
||||||
that much better:
|
|
||||||
|
|
|
@ -1,471 +0,0 @@
|
||||||
MOZILLA PUBLIC LICENSE
|
|
||||||
Version 1.1
|
|
||||||
|
|
||||||
---------------
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
1.0.1. "Commercial Use" means distribution or otherwise making the
|
|
||||||
Covered Code available to a third party.
|
|
||||||
|
|
||||||
1.1. "Contributor" means each entity that creates or contributes to
|
|
||||||
the creation of Modifications.
|
|
||||||
|
|
||||||
1.2. "Contributor Version" means the combination of the Original
|
|
||||||
Code, prior Modifications used by a Contributor, and the Modifications
|
|
||||||
made by that particular Contributor.
|
|
||||||
|
|
||||||
1.3. "Covered Code" means the Original Code or Modifications or the
|
|
||||||
combination of the Original Code and Modifications, in each case
|
|
||||||
including portions thereof.
|
|
||||||
|
|
||||||
1.4. "Electronic Distribution Mechanism" means a mechanism generally
|
|
||||||
accepted in the software development community for the electronic
|
|
||||||
transfer of data.
|
|
||||||
|
|
||||||
1.5. "Executable" means Covered Code in any form other than Source
|
|
||||||
Code.
|
|
||||||
|
|
||||||
1.6. "Initial Developer" means the individual or entity identified
|
|
||||||
as the Initial Developer in the Source Code notice required by Exhibit
|
|
||||||
A.
|
|
||||||
|
|
||||||
1.7. "Larger Work" means a work which combines Covered Code or
|
|
||||||
portions thereof with code not governed by the terms of this License.
|
|
||||||
|
|
||||||
1.8. "License" means this document.
|
|
||||||
|
|
||||||
1.8.1. "Licensable" means having the right to grant, to the maximum
|
|
||||||
extent possible, whether at the time of the initial grant or
|
|
||||||
subsequently acquired, any and all of the rights conveyed herein.
|
|
||||||
|
|
||||||
1.9. "Modifications" means any addition to or deletion from the
|
|
||||||
substance or structure of either the Original Code or any previous
|
|
||||||
Modifications. When Covered Code is released as a series of files, a
|
|
||||||
Modification is:
|
|
||||||
A. Any addition to or deletion from the contents of a file
|
|
||||||
containing Original Code or previous Modifications.
|
|
||||||
|
|
||||||
B. Any new file that contains any part of the Original Code or
|
|
||||||
previous Modifications.
|
|
||||||
|
|
||||||
1.10. "Original Code" means Source Code of computer software code
|
|
||||||
which is described in the Source Code notice required by Exhibit A as
|
|
||||||
Original Code, and which, at the time of its release under this
|
|
||||||
License is not already Covered Code governed by this License.
|
|
||||||
|
|
||||||
1.10.1. "Patent Claims" means any patent claim(s), now owned or
|
|
||||||
hereafter acquired, including without limitation, method, process,
|
|
||||||
and apparatus claims, in any patent Licensable by grantor.
|
|
||||||
|
|
||||||
1.11. "Source Code" means the preferred form of the Covered Code for
|
|
||||||
making modifications to it, including all modules it contains, plus
|
|
||||||
any associated interface definition files, scripts used to control
|
|
||||||
compilation and installation of an Executable, or source code
|
|
||||||
differential comparisons against either the Original Code or another
|
|
||||||
well known, available Covered Code of the Contributor's choice. The
|
|
||||||
Source Code can be in a compressed or archival form, provided the
|
|
||||||
appropriate decompression or de-archiving software is widely available
|
|
||||||
for no charge.
|
|
||||||
|
|
||||||
1.12. "You" (or "Your") means an individual or a legal entity
|
|
||||||
exercising rights under, and complying with all of the terms of, this
|
|
||||||
License or a future version of this License issued under Section 6.1.
|
|
||||||
For legal entities, "You" includes any entity which controls, is
|
|
||||||
controlled by, or is under common control with You. For purposes of
|
|
||||||
this definition, "control" means (a) the power, direct or indirect,
|
|
||||||
to cause the direction or management of such entity, whether by
|
|
||||||
contract or otherwise, or (b) ownership of more than fifty percent
|
|
||||||
(50%) of the outstanding shares or beneficial ownership of such
|
|
||||||
entity.
|
|
||||||
|
|
||||||
2. Source Code License.
|
|
||||||
|
|
||||||
2.1. The Initial Developer Grant.
|
|
||||||
The Initial Developer hereby grants You a world-wide, royalty-free,
|
|
||||||
non-exclusive license, subject to third party intellectual property
|
|
||||||
claims:
|
|
||||||
(a) under intellectual property rights (other than patent or
|
|
||||||
trademark) Licensable by Initial Developer to use, reproduce,
|
|
||||||
modify, display, perform, sublicense and distribute the Original
|
|
||||||
Code (or portions thereof) with or without Modifications, and/or
|
|
||||||
as part of a Larger Work; and
|
|
||||||
|
|
||||||
(b) under Patents Claims infringed by the making, using or
|
|
||||||
selling of Original Code, to make, have made, use, practice,
|
|
||||||
sell, and offer for sale, and/or otherwise dispose of the
|
|
||||||
Original Code (or portions thereof).
|
|
||||||
|
|
||||||
(c) the licenses granted in this Section 2.1(a) and (b) are
|
|
||||||
effective on the date Initial Developer first distributes
|
|
||||||
Original Code under the terms of this License.
|
|
||||||
|
|
||||||
(d) Notwithstanding Section 2.1(b) above, no patent license is
|
|
||||||
granted: 1) for code that You delete from the Original Code; 2)
|
|
||||||
separate from the Original Code; or 3) for infringements caused
|
|
||||||
by: i) the modification of the Original Code or ii) the
|
|
||||||
combination of the Original Code with other software or devices.
|
|
||||||
|
|
||||||
2.2. Contributor Grant.
|
|
||||||
Subject to third party intellectual property claims, each Contributor
|
|
||||||
hereby grants You a world-wide, royalty-free, non-exclusive license
|
|
||||||
|
|
||||||
(a) under intellectual property rights (other than patent or
|
|
||||||
trademark) Licensable by Contributor, to use, reproduce, modify,
|
|
||||||
display, perform, sublicense and distribute the Modifications
|
|
||||||
created by such Contributor (or portions thereof) either on an
|
|
||||||
unmodified basis, with other Modifications, as Covered Code
|
|
||||||
and/or as part of a Larger Work; and
|
|
||||||
|
|
||||||
(b) under Patent Claims infringed by the making, using, or
|
|
||||||
selling of Modifications made by that Contributor either alone
|
|
||||||
and/or in combination with its Contributor Version (or portions
|
|
||||||
of such combination), to make, use, sell, offer for sale, have
|
|
||||||
made, and/or otherwise dispose of: 1) Modifications made by that
|
|
||||||
Contributor (or portions thereof); and 2) the combination of
|
|
||||||
Modifications made by that Contributor with its Contributor
|
|
||||||
Version (or portions of such combination).
|
|
||||||
|
|
||||||
(c) the licenses granted in Sections 2.2(a) and 2.2(b) are
|
|
||||||
effective on the date Contributor first makes Commercial Use of
|
|
||||||
the Covered Code.
|
|
||||||
|
|
||||||
(d) Notwithstanding Section 2.2(b) above, no patent license is
|
|
||||||
granted: 1) for any code that Contributor has deleted from the
|
|
||||||
Contributor Version; 2) separate from the Contributor Version;
|
|
||||||
3) for infringements caused by: i) third party modifications of
|
|
||||||
Contributor Version or ii) the combination of Modifications made
|
|
||||||
by that Contributor with other software (except as part of the
|
|
||||||
Contributor Version) or other devices; or 4) under Patent Claims
|
|
||||||
infringed by Covered Code in the absence of Modifications made by
|
|
||||||
that Contributor.
|
|
||||||
|
|
||||||
3. Distribution Obligations.
|
|
||||||
|
|
||||||
3.1. Application of License.
|
|
||||||
The Modifications which You create or to which You contribute are
|
|
||||||
governed by the terms of this License, including without limitation
|
|
||||||
Section 2.2. The Source Code version of Covered Code may be
|
|
||||||
distributed only under the terms of this License or a future version
|
|
||||||
of this License released under Section 6.1, and You must include a
|
|
||||||
copy of this License with every copy of the Source Code You
|
|
||||||
distribute. You may not offer or impose any terms on any Source Code
|
|
||||||
version that alters or restricts the applicable version of this
|
|
||||||
License or the recipients' rights hereunder. However, You may include
|
|
||||||
an additional document offering the additional rights described in
|
|
||||||
Section 3.5.
|
|
||||||
|
|
||||||
3.2. Availability of Source Code.
|
|
||||||
Any Modification which You create or to which You contribute must be
|
|
||||||
made available in Source Code form under the terms of this License
|
|
||||||
either on the same media as an Executable version or via an accepted
|
|
||||||
Electronic Distribution Mechanism to anyone to whom you made an
|
|
||||||
Executable version available; and if made available via Electronic
|
|
||||||
Distribution Mechanism, must remain available for at least twelve (12)
|
|
||||||
months after the date it initially became available, or at least six
|
|
||||||
(6) months after a subsequent version of that particular Modification
|
|
||||||
has been made available to such recipients. You are responsible for
|
|
||||||
ensuring that the Source Code version remains available even if the
|
|
||||||
Electronic Distribution Mechanism is maintained by a third party.
|
|
||||||
|
|
||||||
3.3. Description of Modifications.
|
|
||||||
You must cause all Covered Code to which You contribute to contain a
|
|
||||||
file documenting the changes You made to create that Covered Code and
|
|
||||||
the date of any change. You must include a prominent statement that
|
|
||||||
the Modification is derived, directly or indirectly, from Original
|
|
||||||
Code provided by the Initial Developer and including the name of the
|
|
||||||
Initial Developer in (a) the Source Code, and (b) in any notice in an
|
|
||||||
Executable version or related documentation in which You describe the
|
|
||||||
origin or ownership of the Covered Code.
|
|
||||||
|
|
||||||
3.4. Intellectual Property Matters
|
|
||||||
(a) Third Party Claims.
|
|
||||||
If Contributor has knowledge that a license under a third party's
|
|
||||||
intellectual property rights is required to exercise the rights
|
|
||||||
granted by such Contributor under Sections 2.1 or 2.2,
|
|
||||||
Contributor must include a text file with the Source Code
|
|
||||||
distribution titled "LEGAL" which describes the claim and the
|
|
||||||
party making the claim in sufficient detail that a recipient will
|
|
||||||
know whom to contact. If Contributor obtains such knowledge after
|
|
||||||
the Modification is made available as described in Section 3.2,
|
|
||||||
Contributor shall promptly modify the LEGAL file in all copies
|
|
||||||
Contributor makes available thereafter and shall take other steps
|
|
||||||
(such as notifying appropriate mailing lists or newsgroups)
|
|
||||||
reasonably calculated to inform those who received the Covered
|
|
||||||
Code that new knowledge has been obtained.
|
|
||||||
|
|
||||||
(b) Contributor APIs.
|
|
||||||
If Contributor's Modifications include an application programming
|
|
||||||
interface and Contributor has knowledge of patent licenses which
|
|
||||||
are reasonably necessary to implement that API, Contributor must
|
|
||||||
also include this information in the LEGAL file.
|
|
||||||
|
|
||||||
(c) Representations.
|
|
||||||
Contributor represents that, except as disclosed pursuant to
|
|
||||||
Section 3.4(a) above, Contributor believes that Contributor's
|
|
||||||
Modifications are Contributor's original creation(s) and/or
|
|
||||||
Contributor has sufficient rights to grant the rights conveyed by
|
|
||||||
this License.
|
|
||||||
|
|
||||||
3.5. Required Notices.
|
|
||||||
You must duplicate the notice in Exhibit A in each file of the Source
|
|
||||||
Code. If it is not possible to put such notice in a particular Source
|
|
||||||
Code file due to its structure, then You must include such notice in a
|
|
||||||
location (such as a relevant directory) where a user would be likely
|
|
||||||
to look for such a notice. If You created one or more Modification(s)
|
|
||||||
You may add your name as a Contributor to the notice described in
|
|
||||||
Exhibit A. You must also duplicate this License in any documentation
|
|
||||||
for the Source Code where You describe recipients' rights or ownership
|
|
||||||
rights relating to Covered Code. You may choose to offer, and to
|
|
||||||
charge a fee for, warranty, support, indemnity or liability
|
|
||||||
obligations to one or more recipients of Covered Code. However, You
|
|
||||||
may do so only on Your own behalf, and not on behalf of the Initial
|
|
||||||
Developer or any Contributor. You must make it absolutely clear than
|
|
||||||
any such warranty, support, indemnity or liability obligation is
|
|
||||||
offered by You alone, and You hereby agree to indemnify the Initial
|
|
||||||
Developer and every Contributor for any liability incurred by the
|
|
||||||
Initial Developer or such Contributor as a result of warranty,
|
|
||||||
support, indemnity or liability terms You offer.
|
|
||||||
|
|
||||||
3.6. Distribution of Executable Versions.
|
|
||||||
You may distribute Covered Code in Executable form only if the
|
|
||||||
requirements of Section 3.1-3.5 have been met for that Covered Code,
|
|
||||||
and if You include a notice stating that the Source Code version of
|
|
||||||
the Covered Code is available under the terms of this License,
|
|
||||||
including a description of how and where You have fulfilled the
|
|
||||||
obligations of Section 3.2. The notice must be conspicuously included
|
|
||||||
in any notice in an Executable version, related documentation or
|
|
||||||
collateral in which You describe recipients' rights relating to the
|
|
||||||
Covered Code. You may distribute the Executable version of Covered
|
|
||||||
Code or ownership rights under a license of Your choice, which may
|
|
||||||
contain terms different from this License, provided that You are in
|
|
||||||
compliance with the terms of this License and that the license for the
|
|
||||||
Executable version does not attempt to limit or alter the recipient's
|
|
||||||
rights in the Source Code version from the rights set forth in this
|
|
||||||
License. If You distribute the Executable version under a different
|
|
||||||
license You must make it absolutely clear that any terms which differ
|
|
||||||
from this License are offered by You alone, not by the Initial
|
|
||||||
Developer or any Contributor. You hereby agree to indemnify the
|
|
||||||
Initial Developer and every Contributor for any liability incurred by
|
|
||||||
the Initial Developer or such Contributor as a result of any such
|
|
||||||
terms You offer.
|
|
||||||
|
|
||||||
3.7. Larger Works.
|
|
||||||
You may create a Larger Work by combining Covered Code with other code
|
|
||||||
not governed by the terms of this License and distribute the Larger
|
|
||||||
Work as a single product. In such a case, You must make sure the
|
|
||||||
requirements of this License are fulfilled for the Covered Code.
|
|
||||||
|
|
||||||
4. Inability to Comply Due to Statute or Regulation.
|
|
||||||
|
|
||||||
If it is impossible for You to comply with any of the terms of this
|
|
||||||
License with respect to some or all of the Covered Code due to
|
|
||||||
statute, judicial order, or regulation then You must: (a) comply with
|
|
||||||
the terms of this License to the maximum extent possible; and (b)
|
|
||||||
describe the limitations and the code they affect. Such description
|
|
||||||
must be included in the LEGAL file described in Section 3.4 and must
|
|
||||||
be included with all distributions of the Source Code. Except to the
|
|
||||||
extent prohibited by statute or regulation, such description must be
|
|
||||||
sufficiently detailed for a recipient of ordinary skill to be able to
|
|
||||||
understand it.
|
|
||||||
|
|
||||||
5. Application of this License.
|
|
||||||
|
|
||||||
This License applies to code to which the Initial Developer has
|
|
||||||
attached the notice in Exhibit A and to related Covered Code.
|
|
||||||
|
|
||||||
6. Versions of the License.
|
|
||||||
|
|
||||||
6.1. New Versions.
|
|
||||||
Netscape Communications Corporation ("Netscape") may publish revised
|
|
||||||
and/or new versions of the License from time to time. Each version
|
|
||||||
will be given a distinguishing version number.
|
|
||||||
|
|
||||||
6.2. Effect of New Versions.
|
|
||||||
Once Covered Code has been published under a particular version of the
|
|
||||||
License, You may always continue to use it under the terms of that
|
|
||||||
version. You may also choose to use such Covered Code under the terms
|
|
||||||
of any subsequent version of the License published by Netscape. No one
|
|
||||||
other than Netscape has the right to modify the terms applicable to
|
|
||||||
Covered Code created under this License.
|
|
||||||
|
|
||||||
6.3. Derivative Works.
|
|
||||||
If You create or use a modified version of this License (which you may
|
|
||||||
only do in order to apply it to code which is not already Covered Code
|
|
||||||
governed by this License), You must (a) rename Your license so that
|
|
||||||
the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape",
|
|
||||||
"MPL", "NPL" or any confusingly similar phrase do not appear in your
|
|
||||||
license (except to note that your license differs from this License)
|
|
||||||
and (b) otherwise make it clear that Your version of the license
|
|
||||||
contains terms which differ from the Mozilla Public License and
|
|
||||||
Netscape Public License. (Filling in the name of the Initial
|
|
||||||
Developer, Original Code or Contributor in the notice described in
|
|
||||||
Exhibit A shall not of themselves be deemed to be modifications of
|
|
||||||
this License.)
|
|
||||||
|
|
||||||
7. DISCLAIMER OF WARRANTY.
|
|
||||||
|
|
||||||
COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
|
||||||
WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
|
|
||||||
DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
|
|
||||||
THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
|
|
||||||
IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
|
|
||||||
YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
|
|
||||||
COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
|
|
||||||
OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
|
|
||||||
ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
|
|
||||||
|
|
||||||
8. TERMINATION.
|
|
||||||
|
|
||||||
8.1. This License and the rights granted hereunder will terminate
|
|
||||||
automatically if You fail to comply with terms herein and fail to cure
|
|
||||||
such breach within 30 days of becoming aware of the breach. All
|
|
||||||
sublicenses to the Covered Code which are properly granted shall
|
|
||||||
survive any termination of this License. Provisions which, by their
|
|
||||||
nature, must remain in effect beyond the termination of this License
|
|
||||||
shall survive.
|
|
||||||
|
|
||||||
8.2. If You initiate litigation by asserting a patent infringement
|
|
||||||
claim (excluding declatory judgment actions) against Initial Developer
|
|
||||||
or a Contributor (the Initial Developer or Contributor against whom
|
|
||||||
You file such action is referred to as "Participant") alleging that:
|
|
||||||
|
|
||||||
(a) such Participant's Contributor Version directly or indirectly
|
|
||||||
infringes any patent, then any and all rights granted by such
|
|
||||||
Participant to You under Sections 2.1 and/or 2.2 of this License
|
|
||||||
shall, upon 60 days notice from Participant terminate prospectively,
|
|
||||||
unless if within 60 days after receipt of notice You either: (i)
|
|
||||||
agree in writing to pay Participant a mutually agreeable reasonable
|
|
||||||
royalty for Your past and future use of Modifications made by such
|
|
||||||
Participant, or (ii) withdraw Your litigation claim with respect to
|
|
||||||
the Contributor Version against such Participant. If within 60 days
|
|
||||||
of notice, a reasonable royalty and payment arrangement are not
|
|
||||||
mutually agreed upon in writing by the parties or the litigation claim
|
|
||||||
is not withdrawn, the rights granted by Participant to You under
|
|
||||||
Sections 2.1 and/or 2.2 automatically terminate at the expiration of
|
|
||||||
the 60 day notice period specified above.
|
|
||||||
|
|
||||||
(b) any software, hardware, or device, other than such Participant's
|
|
||||||
Contributor Version, directly or indirectly infringes any patent, then
|
|
||||||
any rights granted to You by such Participant under Sections 2.1(b)
|
|
||||||
and 2.2(b) are revoked effective as of the date You first made, used,
|
|
||||||
sold, distributed, or had made, Modifications made by that
|
|
||||||
Participant.
|
|
||||||
|
|
||||||
8.3. If You assert a patent infringement claim against Participant
|
|
||||||
alleging that such Participant's Contributor Version directly or
|
|
||||||
indirectly infringes any patent where such claim is resolved (such as
|
|
||||||
by license or settlement) prior to the initiation of patent
|
|
||||||
infringement litigation, then the reasonable value of the licenses
|
|
||||||
granted by such Participant under Sections 2.1 or 2.2 shall be taken
|
|
||||||
into account in determining the amount or value of any payment or
|
|
||||||
license.
|
|
||||||
|
|
||||||
8.4. In the event of termination under Sections 8.1 or 8.2 above,
|
|
||||||
all end user license agreements (excluding distributors and resellers)
|
|
||||||
which have been validly granted by You or any distributor hereunder
|
|
||||||
prior to termination shall survive termination.
|
|
||||||
|
|
||||||
9. LIMITATION OF LIABILITY.
|
|
||||||
|
|
||||||
UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
|
|
||||||
(INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
|
|
||||||
DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
|
|
||||||
OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR
|
|
||||||
ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
|
|
||||||
CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL,
|
|
||||||
WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
|
|
||||||
COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
|
|
||||||
INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
|
|
||||||
LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
|
|
||||||
RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
|
|
||||||
PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
|
|
||||||
EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO
|
|
||||||
THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
|
|
||||||
|
|
||||||
10. U.S. GOVERNMENT END USERS.
|
|
||||||
|
|
||||||
The Covered Code is a "commercial item," as that term is defined in
|
|
||||||
48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
|
|
||||||
software" and "commercial computer software documentation," as such
|
|
||||||
terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
|
|
||||||
C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
|
|
||||||
all U.S. Government End Users acquire Covered Code with only those
|
|
||||||
rights set forth herein.
|
|
||||||
|
|
||||||
11. MISCELLANEOUS.
|
|
||||||
|
|
||||||
This License represents the complete agreement concerning subject
|
|
||||||
matter hereof. If any provision of this License is held to be
|
|
||||||
unenforceable, such provision shall be reformed only to the extent
|
|
||||||
necessary to make it enforceable. This License shall be governed by
|
|
||||||
California law provisions (except to the extent applicable law, if
|
|
||||||
any, provides otherwise), excluding its conflict-of-law provisions.
|
|
||||||
With respect to disputes in which at least one party is a citizen of,
|
|
||||||
or an entity chartered or registered to do business in the United
|
|
||||||
States of America, any litigation relating to this License shall be
|
|
||||||
subject to the jurisdiction of the Federal Courts of the Northern
|
|
||||||
District of California, with venue lying in Santa Clara County,
|
|
||||||
California, with the losing party responsible for costs, including
|
|
||||||
without limitation, court costs and reasonable attorneys' fees and
|
|
||||||
expenses. The application of the United Nations Convention on
|
|
||||||
Contracts for the International Sale of Goods is expressly excluded.
|
|
||||||
Any law or regulation which provides that the language of a contract
|
|
||||||
shall be construed against the drafter shall not apply to this
|
|
||||||
License.
|
|
||||||
|
|
||||||
12. RESPONSIBILITY FOR CLAIMS.
|
|
||||||
|
|
||||||
As between Initial Developer and the Contributors, each party is
|
|
||||||
responsible for claims and damages arising, directly or indirectly,
|
|
||||||
out of its utilization of rights under this License and You agree to
|
|
||||||
work with Initial Developer and Contributors to distribute such
|
|
||||||
responsibility on an equitable basis. Nothing herein is intended or
|
|
||||||
shall be deemed to constitute any admission of liability.
|
|
||||||
|
|
||||||
13. MULTIPLE-LICENSED CODE.
|
|
||||||
|
|
||||||
Initial Developer may designate portions of the Covered Code as
|
|
||||||
"Multiple-Licensed". "Multiple-Licensed" means that the Initial
|
|
||||||
Developer permits you to utilize portions of the Covered Code under
|
|
||||||
Your choice of the NPL or the alternative licenses, if any, specified
|
|
||||||
by the Initial Developer in the file described in Exhibit A.
|
|
||||||
|
|
||||||
EXHIBIT A -Mozilla Public License.
|
|
||||||
|
|
||||||
``The contents of this file are subject to the Mozilla Public License
|
|
||||||
Version 1.1 (the "License"); you may not use this file except in
|
|
||||||
compliance with the License. You may obtain a copy of the License at
|
|
||||||
http://www.mozilla.org/MPL/
|
|
||||||
|
|
||||||
Software distributed under the License is distributed on an "AS IS"
|
|
||||||
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
|
|
||||||
License for the specific language governing rights and limitations
|
|
||||||
under the License.
|
|
||||||
|
|
||||||
The Original Code is ______________________________________.
|
|
||||||
|
|
||||||
The Initial Developer of the Original Code is ________________________.
|
|
||||||
Portions created by ______________________ are Copyright (C) ______
|
|
||||||
_______________________. All Rights Reserved.
|
|
||||||
|
|
||||||
Contributor(s): ______________________________________.
|
|
||||||
|
|
||||||
Alternatively, the contents of this file may be used under the terms
|
|
||||||
of the _____ license (the "[___] License"), in which case the
|
|
||||||
provisions of [______] License are applicable instead of those
|
|
||||||
above. If you wish to allow use of your version of this file only
|
|
||||||
under the terms of the [____] License and not to allow others to use
|
|
||||||
your version of this file under the MPL, indicate your decision by
|
|
||||||
deleting the provisions above and replace them with the notice and
|
|
||||||
other provisions required by the [___] License. If you do not delete
|
|
||||||
the provisions above, a recipient may use your version of this file
|
|
||||||
under either the MPL or the [___] License."
|
|
||||||
|
|
||||||
[NOTE: The text of this Exhibit A may differ slightly from the text of
|
|
||||||
the notices in the Source Code files of the Original Code. You should
|
|
||||||
use the text of this Exhibit A rather than the text found in the
|
|
||||||
Original Code Source Code for Your Modifications.]
|
|
||||||
|
|
||||||
|
|
|
@ -1,231 +0,0 @@
|
||||||
Installation Instructions
|
|
||||||
*************************
|
|
||||||
|
|
||||||
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004 Free
|
|
||||||
Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is free documentation; the Free Software Foundation gives
|
|
||||||
unlimited permission to copy, distribute and modify it.
|
|
||||||
|
|
||||||
Basic Installation
|
|
||||||
==================
|
|
||||||
|
|
||||||
These are generic installation instructions.
|
|
||||||
|
|
||||||
The `configure' shell script attempts to guess correct values for
|
|
||||||
various system-dependent variables used during compilation. It uses
|
|
||||||
those values to create a `Makefile' in each directory of the package.
|
|
||||||
It may also create one or more `.h' files containing system-dependent
|
|
||||||
definitions. Finally, it creates a shell script `config.status' that
|
|
||||||
you can run in the future to recreate the current configuration, and a
|
|
||||||
file `config.log' containing compiler output (useful mainly for
|
|
||||||
debugging `configure').
|
|
||||||
|
|
||||||
It can also use an optional file (typically called `config.cache'
|
|
||||||
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
|
||||||
the results of its tests to speed up reconfiguring. (Caching is
|
|
||||||
disabled by default to prevent problems with accidental use of stale
|
|
||||||
cache files.)
|
|
||||||
|
|
||||||
If you need to do unusual things to compile the package, please try
|
|
||||||
to figure out how `configure' could check whether to do them, and mail
|
|
||||||
diffs or instructions to the address given in the `README' so they can
|
|
||||||
be considered for the next release. If you are using the cache, and at
|
|
||||||
some point `config.cache' contains results you don't want to keep, you
|
|
||||||
may remove or edit it.
|
|
||||||
|
|
||||||
The file `configure.ac' (or `configure.in') is used to create
|
|
||||||
`configure' by a program called `autoconf'. You only need
|
|
||||||
`configure.ac' if you want to change it or regenerate `configure' using
|
|
||||||
a newer version of `autoconf'.
|
|
||||||
|
|
||||||
The simplest way to compile this package is:
|
|
||||||
|
|
||||||
1. `cd' to the directory containing the package's source code and type
|
|
||||||
`./configure' to configure the package for your system. If you're
|
|
||||||
using `csh' on an old version of System V, you might need to type
|
|
||||||
`sh ./configure' instead to prevent `csh' from trying to execute
|
|
||||||
`configure' itself.
|
|
||||||
|
|
||||||
Running `configure' takes awhile. While running, it prints some
|
|
||||||
messages telling which features it is checking for.
|
|
||||||
|
|
||||||
2. Type `make' to compile the package.
|
|
||||||
|
|
||||||
3. Optionally, type `make check' to run any self-tests that come with
|
|
||||||
the package.
|
|
||||||
|
|
||||||
4. Type `make install' to install the programs and any data files and
|
|
||||||
documentation.
|
|
||||||
|
|
||||||
5. You can remove the program binaries and object files from the
|
|
||||||
source code directory by typing `make clean'. To also remove the
|
|
||||||
files that `configure' created (so you can compile the package for
|
|
||||||
a different kind of computer), type `make distclean'. There is
|
|
||||||
also a `make maintainer-clean' target, but that is intended mainly
|
|
||||||
for the package's developers. If you use it, you may have to get
|
|
||||||
all sorts of other programs in order to regenerate files that came
|
|
||||||
with the distribution.
|
|
||||||
|
|
||||||
Compilers and Options
|
|
||||||
=====================
|
|
||||||
|
|
||||||
Some systems require unusual options for compilation or linking that the
|
|
||||||
`configure' script does not know about. Run `./configure --help' for
|
|
||||||
details on some of the pertinent environment variables.
|
|
||||||
|
|
||||||
You can give `configure' initial values for configuration parameters
|
|
||||||
by setting variables in the command line or in the environment. Here
|
|
||||||
is an example:
|
|
||||||
|
|
||||||
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
|
|
||||||
|
|
||||||
*Note Defining Variables::, for more details.
|
|
||||||
|
|
||||||
Compiling For Multiple Architectures
|
|
||||||
====================================
|
|
||||||
|
|
||||||
You can compile the package for more than one kind of computer at the
|
|
||||||
same time, by placing the object files for each architecture in their
|
|
||||||
own directory. To do this, you must use a version of `make' that
|
|
||||||
supports the `VPATH' variable, such as GNU `make'. `cd' to the
|
|
||||||
directory where you want the object files and executables to go and run
|
|
||||||
the `configure' script. `configure' automatically checks for the
|
|
||||||
source code in the directory that `configure' is in and in `..'.
|
|
||||||
|
|
||||||
If you have to use a `make' that does not support the `VPATH'
|
|
||||||
variable, you have to compile the package for one architecture at a
|
|
||||||
time in the source code directory. After you have installed the
|
|
||||||
package for one architecture, use `make distclean' before reconfiguring
|
|
||||||
for another architecture.
|
|
||||||
|
|
||||||
Installation Names
|
|
||||||
==================
|
|
||||||
|
|
||||||
By default, `make install' will install the package's files in
|
|
||||||
`/usr/local/bin', `/usr/local/man', etc. You can specify an
|
|
||||||
installation prefix other than `/usr/local' by giving `configure' the
|
|
||||||
option `--prefix=PREFIX'.
|
|
||||||
|
|
||||||
You can specify separate installation prefixes for
|
|
||||||
architecture-specific files and architecture-independent files. If you
|
|
||||||
give `configure' the option `--exec-prefix=PREFIX', the package will
|
|
||||||
use PREFIX as the prefix for installing programs and libraries.
|
|
||||||
Documentation and other data files will still use the regular prefix.
|
|
||||||
|
|
||||||
In addition, if you use an unusual directory layout you can give
|
|
||||||
options like `--bindir=DIR' to specify different values for particular
|
|
||||||
kinds of files. Run `configure --help' for a list of the directories
|
|
||||||
you can set and what kinds of files go in them.
|
|
||||||
|
|
||||||
If the package supports it, you can cause programs to be installed
|
|
||||||
with an extra prefix or suffix on their names by giving `configure' the
|
|
||||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
|
||||||
|
|
||||||
Optional Features
|
|
||||||
=================
|
|
||||||
|
|
||||||
Some packages pay attention to `--enable-FEATURE' options to
|
|
||||||
`configure', where FEATURE indicates an optional part of the package.
|
|
||||||
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
|
||||||
is something like `gnu-as' or `x' (for the X Window System). The
|
|
||||||
`README' should mention any `--enable-' and `--with-' options that the
|
|
||||||
package recognizes.
|
|
||||||
|
|
||||||
For packages that use the X Window System, `configure' can usually
|
|
||||||
find the X include and library files automatically, but if it doesn't,
|
|
||||||
you can use the `configure' options `--x-includes=DIR' and
|
|
||||||
`--x-libraries=DIR' to specify their locations.
|
|
||||||
|
|
||||||
Specifying the System Type
|
|
||||||
==========================
|
|
||||||
|
|
||||||
There may be some features `configure' cannot figure out automatically,
|
|
||||||
but needs to determine by the type of machine the package will run on.
|
|
||||||
Usually, assuming the package is built to be run on the _same_
|
|
||||||
architectures, `configure' can figure that out, but if it prints a
|
|
||||||
message saying it cannot guess the machine type, give it the
|
|
||||||
`--build=TYPE' option. TYPE can either be a short name for the system
|
|
||||||
type, such as `sun4', or a canonical name which has the form:
|
|
||||||
|
|
||||||
CPU-COMPANY-SYSTEM
|
|
||||||
|
|
||||||
where SYSTEM can have one of these forms:
|
|
||||||
|
|
||||||
OS KERNEL-OS
|
|
||||||
|
|
||||||
See the file `config.sub' for the possible values of each field. If
|
|
||||||
`config.sub' isn't included in this package, then this package doesn't
|
|
||||||
need to know the machine type.
|
|
||||||
|
|
||||||
If you are _building_ compiler tools for cross-compiling, you should
|
|
||||||
use the `--target=TYPE' option to select the type of system they will
|
|
||||||
produce code for.
|
|
||||||
|
|
||||||
If you want to _use_ a cross compiler, that generates code for a
|
|
||||||
platform different from the build platform, you should specify the
|
|
||||||
"host" platform (i.e., that on which the generated programs will
|
|
||||||
eventually be run) with `--host=TYPE'.
|
|
||||||
|
|
||||||
Sharing Defaults
|
|
||||||
================
|
|
||||||
|
|
||||||
If you want to set default values for `configure' scripts to share, you
|
|
||||||
can create a site shell script called `config.site' that gives default
|
|
||||||
values for variables like `CC', `cache_file', and `prefix'.
|
|
||||||
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
|
||||||
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
|
||||||
`CONFIG_SITE' environment variable to the location of the site script.
|
|
||||||
A warning: not all `configure' scripts look for a site script.
|
|
||||||
|
|
||||||
Defining Variables
|
|
||||||
==================
|
|
||||||
|
|
||||||
Variables not defined in a site shell script can be set in the
|
|
||||||
environment passed to `configure'. However, some packages may run
|
|
||||||
configure again during the build, and the customized values of these
|
|
||||||
variables may be lost. In order to avoid this problem, you should set
|
|
||||||
them in the `configure' command line, using `VAR=value'. For example:
|
|
||||||
|
|
||||||
./configure CC=/usr/local2/bin/gcc
|
|
||||||
|
|
||||||
will cause the specified gcc to be used as the C compiler (unless it is
|
|
||||||
overridden in the site shell script).
|
|
||||||
|
|
||||||
`configure' Invocation
|
|
||||||
======================
|
|
||||||
|
|
||||||
`configure' recognizes the following options to control how it operates.
|
|
||||||
|
|
||||||
`--help'
|
|
||||||
`-h'
|
|
||||||
Print a summary of the options to `configure', and exit.
|
|
||||||
|
|
||||||
`--version'
|
|
||||||
`-V'
|
|
||||||
Print the version of Autoconf used to generate the `configure'
|
|
||||||
script, and exit.
|
|
||||||
|
|
||||||
`--cache-file=FILE'
|
|
||||||
Enable the cache: use and save the results of the tests in FILE,
|
|
||||||
traditionally `config.cache'. FILE defaults to `/dev/null' to
|
|
||||||
disable caching.
|
|
||||||
|
|
||||||
`--config-cache'
|
|
||||||
`-C'
|
|
||||||
Alias for `--cache-file=config.cache'.
|
|
||||||
|
|
||||||
`--quiet'
|
|
||||||
`--silent'
|
|
||||||
`-q'
|
|
||||||
Do not print messages saying which checks are being made. To
|
|
||||||
suppress all normal output, redirect it to `/dev/null' (any error
|
|
||||||
messages will still be shown).
|
|
||||||
|
|
||||||
`--srcdir=DIR'
|
|
||||||
Look for the package's source code in directory DIR. Usually
|
|
||||||
`configure' can determine that directory automatically.
|
|
||||||
|
|
||||||
`configure' also accepts some other, not widely useful, options. Run
|
|
||||||
`configure --help' for more details.
|
|
||||||
|
|
|
@ -1,42 +0,0 @@
|
||||||
EXTRA_DIST =
|
|
||||||
SUBDIRS =
|
|
||||||
AUTOMAKE_OPTIONS = foreign
|
|
||||||
NAME=dingaling
|
|
||||||
PREFIX=$(prefix)
|
|
||||||
TOUCH_TARGET=@if test -f "$@" ; then touch "$@" ; fi ;
|
|
||||||
|
|
||||||
AM_CFLAGS = $(new_AM_CFLAGS) -I./src -I$(prefix)/include
|
|
||||||
AM_CPPFLAGS = $(AM_CFLAGS)
|
|
||||||
AM_LDFLAGS = $(new_AM_LDFLAGS)
|
|
||||||
|
|
||||||
AM_CFLAGS += `../apr/apr-1-config --cflags --cppflags --includes || $(prefix)/bin/apr-1-config --cflags --cppflags --includes`
|
|
||||||
AM_CFLAGS += `../apr-util/apu-1-config --includes || $(prefix)/bin/apu-1-config --includes`
|
|
||||||
AM_CFLAGS += -I../iksemel/include
|
|
||||||
|
|
||||||
lib_LTLIBRARIES = libdingaling.la
|
|
||||||
libdingaling_la_SOURCES = src/libdingaling.c src/sha1.c
|
|
||||||
libdingaling_la_CFLAGS = $(AM_CFLAGS)
|
|
||||||
libdingaling_la_LDFLAGS = $(AM_LDFLAGS)
|
|
||||||
libdingaling_la_LIBADD = ../iksemel/src/libiksemel.la ../apr/libapr-1.la ../apr-util/libaprutil-1.la
|
|
||||||
library_includedir = $(prefix)/include
|
|
||||||
library_include_HEADERS = src/libdingaling.h
|
|
||||||
|
|
||||||
$(libdingaling_la_SOURCES): $(libdingaling_la_LIBADD)
|
|
||||||
|
|
||||||
../apr/libapr-1.la: ../apr ../apr/.update
|
|
||||||
cd ../apr && $(MAKE)
|
|
||||||
$(TOUCH_TARGET)
|
|
||||||
|
|
||||||
../apr-util/libaprutil-1.la: ../apr-util ../apr-util/.update
|
|
||||||
cd ../apr-util && $(MAKE)
|
|
||||||
$(TOUCH_TARGET)
|
|
||||||
|
|
||||||
../iksemel/src/libiksemel.la: ../iksemel ../iksemel/.update
|
|
||||||
cd ../iksemel && $(MAKE)
|
|
||||||
$(TOUCH_TARGET)
|
|
||||||
|
|
||||||
dox:
|
|
||||||
cd docs && doxygen $(PWD)/docs/Doxygen.conf
|
|
||||||
|
|
||||||
doxclean:
|
|
||||||
rm -fr docs/html/ docs/man/ docs/perlmod/ docs/xml/
|
|
|
@ -1 +0,0 @@
|
||||||
Developed on UNIX where the motto is "no news is good news!".
|
|
|
@ -1,8 +0,0 @@
|
||||||
Install is common:
|
|
||||||
|
|
||||||
./configure --with-prefix=<desired prefix>
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
m4_include([build/config/ax_compiler_vendor.m4])
|
|
||||||
m4_include([build/config/ax_cflags_warn_all_ansi.m4])
|
|
||||||
m4_include([build/config/ax_cc_maxopt.m4])
|
|
||||||
m4_include([build/config/ax_check_compiler_flags.m4])
|
|
||||||
m4_include([build/config/ac_gcc_archflag.m4])
|
|
||||||
m4_include([build/config/ac_gcc_x86_cpuid.m4])
|
|
|
@ -1,142 +0,0 @@
|
||||||
AC_DEFUN([AX_CFLAGS_GCC_OPTION_OLD], [dnl
|
|
||||||
AS_VAR_PUSHDEF([FLAGS],[CFLAGS])dnl
|
|
||||||
AS_VAR_PUSHDEF([VAR],[ac_cv_cflags_gcc_option_$2])dnl
|
|
||||||
AC_CACHE_CHECK([m4_ifval($1,$1,FLAGS) for gcc m4_ifval($2,$2,-option)],
|
|
||||||
VAR,[VAR="no, unknown"
|
|
||||||
AC_LANG_SAVE
|
|
||||||
AC_LANG_C
|
|
||||||
ac_save_[]FLAGS="$[]FLAGS"
|
|
||||||
for ac_arg dnl
|
|
||||||
in "-pedantic % m4_ifval($2,$2,-option)" dnl GCC
|
|
||||||
#
|
|
||||||
do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
|
|
||||||
AC_TRY_COMPILE([],[return 0;],
|
|
||||||
[VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])
|
|
||||||
done
|
|
||||||
FLAGS="$ac_save_[]FLAGS"
|
|
||||||
AC_LANG_RESTORE
|
|
||||||
])
|
|
||||||
case ".$VAR" in
|
|
||||||
.ok|.ok,*) m4_ifvaln($3,$3) ;;
|
|
||||||
.|.no|.no,*) m4_ifvaln($4,$4) ;;
|
|
||||||
*) m4_ifvaln($3,$3,[
|
|
||||||
if echo " $[]m4_ifval($1,$1,FLAGS) " | grep " $VAR " 2>&1 >/dev/null
|
|
||||||
then AC_RUN_LOG([: m4_ifval($1,$1,FLAGS) does contain $VAR])
|
|
||||||
else AC_RUN_LOG([: m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $VAR"])
|
|
||||||
m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $VAR"
|
|
||||||
fi ]) ;;
|
|
||||||
esac
|
|
||||||
AS_VAR_POPDEF([VAR])dnl
|
|
||||||
AS_VAR_POPDEF([FLAGS])dnl
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
dnl the only difference - the LANG selection... and the default FLAGS
|
|
||||||
|
|
||||||
AC_DEFUN([AX_CXXFLAGS_GCC_OPTION_OLD], [dnl
|
|
||||||
AS_VAR_PUSHDEF([FLAGS],[CXXFLAGS])dnl
|
|
||||||
AS_VAR_PUSHDEF([VAR],[ac_cv_cxxflags_gcc_option_$2])dnl
|
|
||||||
AC_CACHE_CHECK([m4_ifval($1,$1,FLAGS) for gcc m4_ifval($2,$2,-option)],
|
|
||||||
VAR,[VAR="no, unknown"
|
|
||||||
AC_LANG_SAVE
|
|
||||||
AC_LANG_CXX
|
|
||||||
ac_save_[]FLAGS="$[]FLAGS"
|
|
||||||
for ac_arg dnl
|
|
||||||
in "-pedantic % m4_ifval($2,$2,-option)" dnl GCC
|
|
||||||
#
|
|
||||||
do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
|
|
||||||
AC_TRY_COMPILE([],[return 0;],
|
|
||||||
[VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])
|
|
||||||
done
|
|
||||||
FLAGS="$ac_save_[]FLAGS"
|
|
||||||
AC_LANG_RESTORE
|
|
||||||
])
|
|
||||||
case ".$VAR" in
|
|
||||||
.ok|.ok,*) m4_ifvaln($3,$3) ;;
|
|
||||||
.|.no|.no,*) m4_ifvaln($4,$4) ;;
|
|
||||||
*) m4_ifvaln($3,$3,[
|
|
||||||
if echo " $[]m4_ifval($1,$1,FLAGS) " | grep " $VAR " 2>&1 >/dev/null
|
|
||||||
then AC_RUN_LOG([: m4_ifval($1,$1,FLAGS) does contain $VAR])
|
|
||||||
else AC_RUN_LOG([: m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $VAR"])
|
|
||||||
m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $VAR"
|
|
||||||
fi ]) ;;
|
|
||||||
esac
|
|
||||||
AS_VAR_POPDEF([VAR])dnl
|
|
||||||
AS_VAR_POPDEF([FLAGS])dnl
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl -------------------------------------------------------------------------
|
|
||||||
|
|
||||||
AC_DEFUN([AX_CFLAGS_GCC_OPTION_NEW], [dnl
|
|
||||||
AS_VAR_PUSHDEF([FLAGS],[CFLAGS])dnl
|
|
||||||
AS_VAR_PUSHDEF([VAR],[ac_cv_cflags_gcc_option_$1])dnl
|
|
||||||
AC_CACHE_CHECK([m4_ifval($2,$2,FLAGS) for gcc m4_ifval($1,$1,-option)],
|
|
||||||
VAR,[VAR="no, unknown"
|
|
||||||
AC_LANG_SAVE
|
|
||||||
AC_LANG_C
|
|
||||||
ac_save_[]FLAGS="$[]FLAGS"
|
|
||||||
for ac_arg dnl
|
|
||||||
in "-pedantic % m4_ifval($1,$1,-option)" dnl GCC
|
|
||||||
#
|
|
||||||
do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
|
|
||||||
AC_TRY_COMPILE([],[return 0;],
|
|
||||||
[VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])
|
|
||||||
done
|
|
||||||
FLAGS="$ac_save_[]FLAGS"
|
|
||||||
AC_LANG_RESTORE
|
|
||||||
])
|
|
||||||
case ".$VAR" in
|
|
||||||
.ok|.ok,*) m4_ifvaln($3,$3) ;;
|
|
||||||
.|.no|.no,*) m4_ifvaln($4,$4) ;;
|
|
||||||
*) m4_ifvaln($3,$3,[
|
|
||||||
if echo " $[]m4_ifval($2,$2,FLAGS) " | grep " $VAR " 2>&1 >/dev/null
|
|
||||||
then AC_RUN_LOG([: m4_ifval($2,$2,FLAGS) does contain $VAR])
|
|
||||||
else AC_RUN_LOG([: m4_ifval($2,$2,FLAGS)="$m4_ifval($2,$2,FLAGS) $VAR"])
|
|
||||||
m4_ifval($2,$2,FLAGS)="$m4_ifval($2,$2,FLAGS) $VAR"
|
|
||||||
fi ]) ;;
|
|
||||||
esac
|
|
||||||
AS_VAR_POPDEF([VAR])dnl
|
|
||||||
AS_VAR_POPDEF([FLAGS])dnl
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
dnl the only difference - the LANG selection... and the default FLAGS
|
|
||||||
|
|
||||||
AC_DEFUN([AX_CXXFLAGS_GCC_OPTION_NEW], [dnl
|
|
||||||
AS_VAR_PUSHDEF([FLAGS],[CXXFLAGS])dnl
|
|
||||||
AS_VAR_PUSHDEF([VAR],[ac_cv_cxxflags_gcc_option_$1])dnl
|
|
||||||
AC_CACHE_CHECK([m4_ifval($2,$2,FLAGS) for gcc m4_ifval($1,$1,-option)],
|
|
||||||
VAR,[VAR="no, unknown"
|
|
||||||
AC_LANG_SAVE
|
|
||||||
AC_LANG_CXX
|
|
||||||
ac_save_[]FLAGS="$[]FLAGS"
|
|
||||||
for ac_arg dnl
|
|
||||||
in "-pedantic % m4_ifval($1,$1,-option)" dnl GCC
|
|
||||||
#
|
|
||||||
do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
|
|
||||||
AC_TRY_COMPILE([],[return 0;],
|
|
||||||
[VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])
|
|
||||||
done
|
|
||||||
FLAGS="$ac_save_[]FLAGS"
|
|
||||||
AC_LANG_RESTORE
|
|
||||||
])
|
|
||||||
case ".$VAR" in
|
|
||||||
.ok|.ok,*) m4_ifvaln($3,$3) ;;
|
|
||||||
.|.no|.no,*) m4_ifvaln($4,$4) ;;
|
|
||||||
*) m4_ifvaln($3,$3,[
|
|
||||||
if echo " $[]m4_ifval($2,$2,FLAGS) " | grep " $VAR " 2>&1 >/dev/null
|
|
||||||
then AC_RUN_LOG([: m4_ifval($2,$2,FLAGS) does contain $VAR])
|
|
||||||
else AC_RUN_LOG([: m4_ifval($2,$2,FLAGS)="$m4_ifval($2,$2,FLAGS) $VAR"])
|
|
||||||
m4_ifval($2,$2,FLAGS)="$m4_ifval($2,$2,FLAGS) $VAR"
|
|
||||||
fi ]) ;;
|
|
||||||
esac
|
|
||||||
AS_VAR_POPDEF([VAR])dnl
|
|
||||||
AS_VAR_POPDEF([FLAGS])dnl
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([AX_CFLAGS_GCC_OPTION],[ifelse(m4_bregexp([$2],[-]),-1,
|
|
||||||
[AX_CFLAGS_GCC_OPTION_NEW($@)],[AX_CFLAGS_GCC_OPTION_OLD($@)])])
|
|
||||||
|
|
||||||
AC_DEFUN([AX_CXXFLAGS_GCC_OPTION],[ifelse(m4_bregexp([$2],[-]),-1,
|
|
||||||
[AX_CXXFLAGS_GCC_OPTION_NEW($@)],[AX_CXXFLAGS_GCC_OPTION_OLD($@)])])
|
|
||||||
|
|
|
@ -1,140 +0,0 @@
|
||||||
AC_DEFUN([AX_CFLAGS_SUN_OPTION_OLD], [dnl
|
|
||||||
AS_VAR_PUSHDEF([FLAGS],[CFLAGS])dnl
|
|
||||||
AS_VAR_PUSHDEF([VAR],[ac_cv_cflags_sun_option_$2])dnl
|
|
||||||
AC_CACHE_CHECK([m4_ifval($1,$1,FLAGS) for sun/cc m4_ifval($2,$2,-option)],
|
|
||||||
VAR,[VAR="no, unknown"
|
|
||||||
AC_LANG_SAVE
|
|
||||||
AC_LANG_C
|
|
||||||
ac_save_[]FLAGS="$[]FLAGS"
|
|
||||||
for ac_arg dnl
|
|
||||||
in "+xstrconst % -xc99=all m4_ifval($2,$2,-option)" dnl Solaris C
|
|
||||||
#
|
|
||||||
do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
|
|
||||||
AC_TRY_COMPILE([],[return 0;],
|
|
||||||
[VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])
|
|
||||||
done
|
|
||||||
FLAGS="$ac_save_[]FLAGS"
|
|
||||||
AC_LANG_RESTORE
|
|
||||||
])
|
|
||||||
case ".$VAR" in
|
|
||||||
.ok|.ok,*) m4_ifvaln($3,$3) ;;
|
|
||||||
.|.no|.no,*) m4_ifvaln($4,$4) ;;
|
|
||||||
*) m4_ifvaln($3,$3,[
|
|
||||||
if echo " $[]m4_ifval($1,$1,FLAGS) " | grep " $VAR " 2>&1 >/dev/null
|
|
||||||
then AC_RUN_LOG([: m4_ifval($1,$1,FLAGS) does contain $VAR])
|
|
||||||
else AC_RUN_LOG([: m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $VAR"])
|
|
||||||
m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $VAR"
|
|
||||||
fi ]) ;;
|
|
||||||
esac
|
|
||||||
AS_VAR_POPDEF([VAR])dnl
|
|
||||||
AS_VAR_POPDEF([FLAGS])dnl
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl the only difference - the LANG selection... and the default FLAGS
|
|
||||||
|
|
||||||
AC_DEFUN([AX_CXXFLAGS_SUN_OPTION_OLD], [dnl
|
|
||||||
AS_VAR_PUSHDEF([FLAGS],[CXXFLAGS])dnl
|
|
||||||
AS_VAR_PUSHDEF([VAR],[ac_cv_cxxflags_sun_option_$2])dnl
|
|
||||||
AC_CACHE_CHECK([m4_ifval($1,$1,FLAGS) for sun/cc m4_ifval($2,$2,-option)],
|
|
||||||
VAR,[VAR="no, unknown"
|
|
||||||
AC_LANG_SAVE
|
|
||||||
AC_LANG_CXX
|
|
||||||
ac_save_[]FLAGS="$[]FLAGS"
|
|
||||||
for ac_arg dnl
|
|
||||||
in "+xstrconst % -xc99=all m4_ifval($2,$2,-option)" dnl Solaris C
|
|
||||||
#
|
|
||||||
do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
|
|
||||||
AC_TRY_COMPILE([],[return 0;],
|
|
||||||
[VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])
|
|
||||||
done
|
|
||||||
FLAGS="$ac_save_[]FLAGS"
|
|
||||||
AC_LANG_RESTORE
|
|
||||||
])
|
|
||||||
case ".$VAR" in
|
|
||||||
.ok|.ok,*) m4_ifvaln($3,$3) ;;
|
|
||||||
.|.no|.no,*) m4_ifvaln($4,$4) ;;
|
|
||||||
*) m4_ifvaln($3,$3,[
|
|
||||||
if echo " $[]m4_ifval($1,$1,FLAGS) " | grep " $VAR " 2>&1 >/dev/null
|
|
||||||
then AC_RUN_LOG([: m4_ifval($1,$1,FLAGS) does contain $VAR])
|
|
||||||
else AC_RUN_LOG([: m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $VAR"])
|
|
||||||
m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $VAR"
|
|
||||||
fi ]) ;;
|
|
||||||
esac
|
|
||||||
AS_VAR_POPDEF([VAR])dnl
|
|
||||||
AS_VAR_POPDEF([FLAGS])dnl
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl -----------------------------------------------------------------------
|
|
||||||
|
|
||||||
AC_DEFUN([AX_CFLAGS_SUN_OPTION_NEW], [dnl
|
|
||||||
AS_VAR_PUSHDEF([FLAGS],[CFLAGS])dnl
|
|
||||||
AS_VAR_PUSHDEF([VAR],[ac_cv_cflags_sun_option_$1])dnl
|
|
||||||
AC_CACHE_CHECK([m4_ifval($2,$2,FLAGS) for sun/cc m4_ifval($1,$1,-option)],
|
|
||||||
VAR,[VAR="no, unknown"
|
|
||||||
AC_LANG_SAVE
|
|
||||||
AC_LANG_C
|
|
||||||
ac_save_[]FLAGS="$[]FLAGS"
|
|
||||||
for ac_arg dnl
|
|
||||||
in "+xstrconst % -xc99=all m4_ifval($1,$1,-option)" dnl Solaris C
|
|
||||||
#
|
|
||||||
do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
|
|
||||||
AC_TRY_COMPILE([],[return 0;],
|
|
||||||
[VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])
|
|
||||||
done
|
|
||||||
FLAGS="$ac_save_[]FLAGS"
|
|
||||||
AC_LANG_RESTORE
|
|
||||||
])
|
|
||||||
case ".$VAR" in
|
|
||||||
.ok|.ok,*) m4_ifvaln($3,$3) ;;
|
|
||||||
.|.no|.no,*) m4_ifvaln($4,$4) ;;
|
|
||||||
*) m4_ifvaln($3,$3,[
|
|
||||||
if echo " $[]m4_ifval($2,$2,FLAGS) " | grep " $VAR " 2>&1 >/dev/null
|
|
||||||
then AC_RUN_LOG([: m4_ifval($2,$2,FLAGS) does contain $VAR])
|
|
||||||
else AC_RUN_LOG([: m4_ifval($2,$2,FLAGS)="$m4_ifval($2,$2,FLAGS) $VAR"])
|
|
||||||
m4_ifval($2,$2,FLAGS)="$m4_ifval($2,$2,FLAGS) $VAR"
|
|
||||||
fi ]) ;;
|
|
||||||
esac
|
|
||||||
AS_VAR_POPDEF([VAR])dnl
|
|
||||||
AS_VAR_POPDEF([FLAGS])dnl
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl the only difference - the LANG selection... and the default FLAGS
|
|
||||||
|
|
||||||
AC_DEFUN([AX_CXXFLAGS_SUN_OPTION_NEW], [dnl
|
|
||||||
AS_VAR_PUSHDEF([FLAGS],[CXXFLAGS])dnl
|
|
||||||
AS_VAR_PUSHDEF([VAR],[ac_cv_cxxflags_sun_option_$1])dnl
|
|
||||||
AC_CACHE_CHECK([m4_ifval($2,$2,FLAGS) for sun/cc m4_ifval($1,$1,-option)],
|
|
||||||
VAR,[VAR="no, unknown"
|
|
||||||
AC_LANG_SAVE
|
|
||||||
AC_LANG_CXX
|
|
||||||
ac_save_[]FLAGS="$[]FLAGS"
|
|
||||||
for ac_arg dnl
|
|
||||||
in "+xstrconst % -xc99=all m4_ifval($1,$1,-option)" dnl Solaris C
|
|
||||||
#
|
|
||||||
do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
|
|
||||||
AC_TRY_COMPILE([],[return 0;],
|
|
||||||
[VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])
|
|
||||||
done
|
|
||||||
FLAGS="$ac_save_[]FLAGS"
|
|
||||||
AC_LANG_RESTORE
|
|
||||||
])
|
|
||||||
case ".$VAR" in
|
|
||||||
.ok|.ok,*) m4_ifvaln($3,$3) ;;
|
|
||||||
.|.no|.no,*) m4_ifvaln($4,$4) ;;
|
|
||||||
*) m4_ifvaln($3,$3,[
|
|
||||||
if echo " $[]m4_ifval($2,$2,FLAGS) " | grep " $VAR " 2>&1 >/dev/null
|
|
||||||
then AC_RUN_LOG([: m4_ifval($2,$2,FLAGS) does contain $VAR])
|
|
||||||
else AC_RUN_LOG([: m4_ifval($2,$2,FLAGS)="$m4_ifval($2,$2,FLAGS) $VAR"])
|
|
||||||
m4_ifval($2,$2,FLAGS)="$m4_ifval($2,$2,FLAGS) $VAR"
|
|
||||||
fi ]) ;;
|
|
||||||
esac
|
|
||||||
AS_VAR_POPDEF([VAR])dnl
|
|
||||||
AS_VAR_POPDEF([FLAGS])dnl
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([AX_CFLAGS_SUN_OPTION],[ifelse(m4_regexp([$2],[-]),-1,
|
|
||||||
[AX_CFLAGS_SUN_OPTION_NEW($@)],[AX_CFLAGS_SUN_OPTION_OLD($@)])])
|
|
||||||
|
|
||||||
AC_DEFUN([AX_CXXFLAGS_SUN_OPTION],[ifelse(m4_regexp([$2],[-]),-1,
|
|
||||||
[AX_CXXFLAGS_SUN_OPTION_NEW($@)],[AX_CXXFLAGS_SUN_OPTION_OLD($@)])])
|
|
||||||
|
|
|
@ -1,148 +0,0 @@
|
||||||
AC_DEFUN([AX_GCC_ARCHFLAG],
|
|
||||||
[AC_REQUIRE([AC_PROG_CC])
|
|
||||||
|
|
||||||
AC_ARG_WITH(gcc-arch, [AC_HELP_STRING([--with-gcc-arch=<arch>], [use architecture <arch> for gcc -march/-mtune, instead of guessing])],
|
|
||||||
ax_gcc_arch=$withval, ax_gcc_arch=yes)
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([for gcc architecture flag])
|
|
||||||
AC_MSG_RESULT([])
|
|
||||||
AC_CACHE_VAL(ax_cv_gcc_archflag,
|
|
||||||
[
|
|
||||||
ax_cv_gcc_archflag="unknown"
|
|
||||||
|
|
||||||
if test "$GCC" = yes; then
|
|
||||||
|
|
||||||
if test "x$ax_gcc_arch" = xyes; then
|
|
||||||
ax_gcc_arch=""
|
|
||||||
if test "$cross_compiling" = no; then
|
|
||||||
case $host_cpu in
|
|
||||||
i[[3456]]86*|x86_64*) # use cpuid codes, in part from x86info-1.7 by D. Jones
|
|
||||||
AX_GCC_X86_CPUID(0)
|
|
||||||
AX_GCC_X86_CPUID(1)
|
|
||||||
case $ax_cv_gcc_x86_cpuid_0 in
|
|
||||||
*:756e6547:*:*) # Intel
|
|
||||||
case $ax_cv_gcc_x86_cpuid_1 in
|
|
||||||
*5[[48]]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
|
|
||||||
*5??:*:*:*) ax_gcc_arch=pentium ;;
|
|
||||||
*6[[3456]]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
|
|
||||||
*6a?:*[[01]]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
|
|
||||||
*6a?:*[[234]]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
|
|
||||||
*6[[9d]]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
|
|
||||||
*6[[78b]]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
|
|
||||||
*6??:*:*:*) ax_gcc_arch=pentiumpro ;;
|
|
||||||
*f3[[347]]:*:*:*|*f4[1347]:*:*:*)
|
|
||||||
case $host_cpu in
|
|
||||||
x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
|
|
||||||
*) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
|
|
||||||
esac ;;
|
|
||||||
*f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
|
|
||||||
esac ;;
|
|
||||||
*:68747541:*:*) # AMD
|
|
||||||
case $ax_cv_gcc_x86_cpuid_1 in
|
|
||||||
*5[[67]]?:*:*:*) ax_gcc_arch=k6 ;;
|
|
||||||
*5[[8d]]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
|
|
||||||
*5[[9]]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
|
|
||||||
*60?:*:*:*) ax_gcc_arch=k7 ;;
|
|
||||||
*6[[12]]?:*:*:*) ax_gcc_arch="athlon k7" ;;
|
|
||||||
*6[[34]]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
|
|
||||||
*67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
|
|
||||||
*6[[68a]]?:*:*:*)
|
|
||||||
AX_GCC_X86_CPUID(0x80000006) # L2 cache size
|
|
||||||
case $ax_cv_gcc_x86_cpuid_0x80000006 in
|
|
||||||
*:*:*[[1-9a-f]]??????:*) # (L2 = ecx >> 16) >= 256
|
|
||||||
ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
|
|
||||||
*) ax_gcc_arch="athlon-4 athlon k7" ;;
|
|
||||||
esac ;;
|
|
||||||
*f[[4cef8b]]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
|
|
||||||
*f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
|
|
||||||
*f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
|
|
||||||
*f??:*:*:*) ax_gcc_arch="k8" ;;
|
|
||||||
esac ;;
|
|
||||||
*:746e6543:*:*) # IDT
|
|
||||||
case $ax_cv_gcc_x86_cpuid_1 in
|
|
||||||
*54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
|
|
||||||
*58?:*:*:*) ax_gcc_arch=winchip2 ;;
|
|
||||||
*6[[78]]?:*:*:*) ax_gcc_arch=c3 ;;
|
|
||||||
*69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
|
|
||||||
esac ;;
|
|
||||||
esac
|
|
||||||
if test x"$ax_gcc_arch" = x; then # fallback
|
|
||||||
case $host_cpu in
|
|
||||||
i586*) ax_gcc_arch=pentium ;;
|
|
||||||
i686*) ax_gcc_arch=pentiumpro ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
sparc*)
|
|
||||||
AC_PATH_PROG([PRTDIAG], [prtdiag], [prtdiag], [$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/])
|
|
||||||
cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
|
|
||||||
cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
|
|
||||||
case $cputype in
|
|
||||||
*ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
|
|
||||||
*ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
|
|
||||||
*ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
|
|
||||||
*supersparc*|*tms390z5[[05]]*) ax_gcc_arch="supersparc v8" ;;
|
|
||||||
*hypersparc*|*rt62[[056]]*) ax_gcc_arch="hypersparc v8" ;;
|
|
||||||
*cypress*) ax_gcc_arch=cypress ;;
|
|
||||||
esac ;;
|
|
||||||
|
|
||||||
alphaev5) ax_gcc_arch=ev5 ;;
|
|
||||||
alphaev56) ax_gcc_arch=ev56 ;;
|
|
||||||
alphapca56) ax_gcc_arch="pca56 ev56" ;;
|
|
||||||
alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
|
|
||||||
alphaev6) ax_gcc_arch=ev6 ;;
|
|
||||||
alphaev67) ax_gcc_arch=ev67 ;;
|
|
||||||
alphaev68) ax_gcc_arch="ev68 ev67" ;;
|
|
||||||
alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
|
|
||||||
alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
|
|
||||||
alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
|
|
||||||
|
|
||||||
powerpc*)
|
|
||||||
cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
|
|
||||||
cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
|
|
||||||
case $cputype in
|
|
||||||
*750*) ax_gcc_arch="750 G3" ;;
|
|
||||||
*740[[0-9]]*) ax_gcc_arch="$cputype 7400 G4" ;;
|
|
||||||
*74[[4-5]][[0-9]]*) ax_gcc_arch="$cputype 7450 G4" ;;
|
|
||||||
*74[[0-9]][[0-9]]*) ax_gcc_arch="$cputype G4" ;;
|
|
||||||
*970*) ax_gcc_arch="970 G5 power4";;
|
|
||||||
*POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
|
|
||||||
*POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
|
|
||||||
603ev|8240) ax_gcc_arch="$cputype 603e 603";;
|
|
||||||
*) ax_gcc_arch=$cputype ;;
|
|
||||||
esac
|
|
||||||
ax_gcc_arch="$ax_gcc_arch powerpc"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi # not cross-compiling
|
|
||||||
fi # guess arch
|
|
||||||
|
|
||||||
if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
|
|
||||||
for arch in $ax_gcc_arch; do
|
|
||||||
if test "x[]m4_default([$1],yes)" = xyes; then # if we require portable code
|
|
||||||
flags="-mtune=$arch"
|
|
||||||
# -mcpu=$arch and m$arch generate nonportable code on every arch except
|
|
||||||
# x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
|
|
||||||
case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
|
|
||||||
else
|
|
||||||
flags="-march=$arch -mcpu=$arch -m$arch"
|
|
||||||
fi
|
|
||||||
for flag in $flags; do
|
|
||||||
AX_CHECK_COMPILER_FLAGS($flag, [ax_cv_gcc_archflag=$flag; break])
|
|
||||||
done
|
|
||||||
test "x$ax_cv_gcc_archflag" = xunknown || break
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi # $GCC=yes
|
|
||||||
])
|
|
||||||
AC_MSG_CHECKING([for gcc architecture flag])
|
|
||||||
AC_MSG_RESULT($ax_cv_gcc_archflag)
|
|
||||||
if test "x$ax_cv_gcc_archflag" = xunknown; then
|
|
||||||
m4_default([$3],:)
|
|
||||||
else
|
|
||||||
m4_default([$2], [CFLAGS="$CFLAGS $ax_cv_gcc_archflag"])
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
AC_DEFUN([AX_GCC_X86_CPUID],
|
|
||||||
[AC_REQUIRE([AC_PROG_CC])
|
|
||||||
AC_LANG_PUSH([C])
|
|
||||||
AC_CACHE_CHECK(for x86 cpuid $1 output, ax_cv_gcc_x86_cpuid_$1,
|
|
||||||
[AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <stdio.h>], [
|
|
||||||
int op = $1, eax, ebx, ecx, edx;
|
|
||||||
FILE *f;
|
|
||||||
__asm__("cpuid"
|
|
||||||
: "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
|
|
||||||
: "a" (op));
|
|
||||||
f = fopen("conftest_cpuid", "w"); if (!f) return 1;
|
|
||||||
fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
|
|
||||||
fclose(f);
|
|
||||||
return 0;
|
|
||||||
])],
|
|
||||||
[ax_cv_gcc_x86_cpuid_$1=`cat conftest_cpuid`; rm -f conftest_cpuid],
|
|
||||||
[ax_cv_gcc_x86_cpuid_$1=unknown; rm -f conftest_cpuid],
|
|
||||||
[ax_cv_gcc_x86_cpuid_$1=unknown])])
|
|
||||||
AC_LANG_POP([C])
|
|
||||||
])
|
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
AC_DEFUN([AC_PROG_GZIP],[
|
|
||||||
AC_CHECK_PROGS(gzip,[gzip],no)
|
|
||||||
export gzip;
|
|
||||||
if test $gzip = "no" ;
|
|
||||||
then
|
|
||||||
AC_MSG_ERROR([Unable to find the gzip application]);
|
|
||||||
fi
|
|
||||||
AC_SUBST(gzip)
|
|
||||||
])
|
|
|
@ -1,9 +0,0 @@
|
||||||
AC_DEFUN([AC_PROG_WGET],[
|
|
||||||
AC_CHECK_PROGS(wget,[wget],no)
|
|
||||||
export wget;
|
|
||||||
if test $wget = "no" ;
|
|
||||||
then
|
|
||||||
AC_MSG_ERROR([Unable to find the wget application]);
|
|
||||||
fi
|
|
||||||
AC_SUBST(wget)
|
|
||||||
])
|
|
|
@ -1,120 +0,0 @@
|
||||||
AC_DEFUN([AX_CC_MAXOPT],
|
|
||||||
[
|
|
||||||
AC_REQUIRE([AC_PROG_CC])
|
|
||||||
AC_REQUIRE([AX_COMPILER_VENDOR])
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(portable-binary, [AC_HELP_STRING([--enable-portable-binary], [disable compiler optimizations that would produce unportable binaries])],
|
|
||||||
acx_maxopt_portable=$withval, acx_maxopt_portable=no)
|
|
||||||
|
|
||||||
# Try to determine "good" native compiler flags if none specified via CFLAGS
|
|
||||||
if test "$ac_test_CFLAGS" != "set"; then
|
|
||||||
CFLAGS=""
|
|
||||||
case $ax_cv_c_compiler_vendor in
|
|
||||||
dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
|
|
||||||
if test "x$acx_maxopt_portable" = xno; then
|
|
||||||
CFLAGS="$CFLAGS -arch host"
|
|
||||||
fi;;
|
|
||||||
|
|
||||||
sun) CFLAGS="-native -fast -xO5 -dalign -xc99=all"
|
|
||||||
if test "x$acx_maxopt_portable" = xyes; then
|
|
||||||
CFLAGS="$CFLAGS -xarch=generic"
|
|
||||||
fi;;
|
|
||||||
|
|
||||||
hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
|
|
||||||
if test "x$acx_maxopt_portable" = xyes; then
|
|
||||||
CFLAGS="$CFLAGS +DAportable"
|
|
||||||
fi;;
|
|
||||||
|
|
||||||
ibm) if test "x$acx_maxopt_portable" = xno; then
|
|
||||||
xlc_opt="-qarch=auto -qtune=auto"
|
|
||||||
else
|
|
||||||
xlc_opt="-qtune=auto"
|
|
||||||
fi
|
|
||||||
AX_CHECK_COMPILER_FLAGS($xlc_opt,
|
|
||||||
CFLAGS="-O3 -qansialias -w $xlc_opt",
|
|
||||||
[CFLAGS="-O3 -qansialias -w"
|
|
||||||
echo "******************************************************"
|
|
||||||
echo "* You seem to have the IBM C compiler. It is *"
|
|
||||||
echo "* recommended for best performance that you use: *"
|
|
||||||
echo "* *"
|
|
||||||
echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
|
|
||||||
echo "* ^^^ ^^^ *"
|
|
||||||
echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
|
|
||||||
echo "* CPU you have. (Set the CFLAGS environment var. *"
|
|
||||||
echo "* and re-run configure.) For more info, man cc. *"
|
|
||||||
echo "******************************************************"])
|
|
||||||
;;
|
|
||||||
|
|
||||||
intel) CFLAGS="-O3 -ansi_alias"
|
|
||||||
if test "x$acx_maxopt_portable" = xno; then
|
|
||||||
icc_archflag=unknown
|
|
||||||
icc_flags=""
|
|
||||||
case $host_cpu in
|
|
||||||
i686*|x86_64*)
|
|
||||||
# icc accepts gcc assembly syntax, so these should work:
|
|
||||||
AX_GCC_X86_CPUID(0)
|
|
||||||
AX_GCC_X86_CPUID(1)
|
|
||||||
case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
|
|
||||||
*:756e6547:*:*) # Intel
|
|
||||||
case $ax_cv_gcc_x86_cpuid_1 in
|
|
||||||
*6a?:*[[234]]:*:*|*6[[789b]]?:*:*:*) icc_flags="-xK";;
|
|
||||||
*f3[[347]]:*:*:*|*f4[1347]:*:*:*) icc_flags="-xP -xN -xW -xK";;
|
|
||||||
*f??:*:*:*) icc_flags="-xN -xW -xK";;
|
|
||||||
esac ;;
|
|
||||||
esac ;;
|
|
||||||
esac
|
|
||||||
if test "x$icc_flags" != x; then
|
|
||||||
for flag in $icc_flags; do
|
|
||||||
AX_CHECK_COMPILER_FLAGS($flag, [icc_archflag=$flag; break])
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
AC_MSG_CHECKING([for icc architecture flag])
|
|
||||||
AC_MSG_RESULT($icc_archflag)
|
|
||||||
if test "x$icc_archflag" != xunknown; then
|
|
||||||
CFLAGS="$CFLAGS $icc_archflag"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
gnu)
|
|
||||||
# default optimization flags for gcc on all systems
|
|
||||||
CFLAGS="-O3 -fomit-frame-pointer"
|
|
||||||
|
|
||||||
# -malign-double for x86 systems
|
|
||||||
AX_CHECK_COMPILER_FLAGS(-malign-double, CFLAGS="$CFLAGS -malign-double")
|
|
||||||
|
|
||||||
# -fstrict-aliasing for gcc-2.95+
|
|
||||||
AX_CHECK_COMPILER_FLAGS(-fstrict-aliasing,
|
|
||||||
CFLAGS="$CFLAGS -fstrict-aliasing")
|
|
||||||
|
|
||||||
# note that we enable "unsafe" fp optimization with other compilers, too
|
|
||||||
AX_CHECK_COMPILER_FLAGS(-ffast-math, CFLAGS="$CFLAGS -ffast-math")
|
|
||||||
|
|
||||||
AX_GCC_ARCHFLAG($acx_maxopt_portable)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if test -z "$CFLAGS"; then
|
|
||||||
echo ""
|
|
||||||
echo "********************************************************"
|
|
||||||
echo "* WARNING: Don't know the best CFLAGS for this system *"
|
|
||||||
echo "* Use ./configure CFLAGS=... to specify your own flags *"
|
|
||||||
echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
|
|
||||||
echo "********************************************************"
|
|
||||||
echo ""
|
|
||||||
CFLAGS="-O3"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AX_CHECK_COMPILER_FLAGS($CFLAGS, [], [
|
|
||||||
echo ""
|
|
||||||
echo "********************************************************"
|
|
||||||
echo "* WARNING: The guessed CFLAGS don't seem to work with *"
|
|
||||||
echo "* your compiler. *"
|
|
||||||
echo "* Use ./configure CFLAGS=... to specify your own flags *"
|
|
||||||
echo "********************************************************"
|
|
||||||
echo ""
|
|
||||||
CFLAGS=""
|
|
||||||
])
|
|
||||||
|
|
||||||
fi
|
|
||||||
])
|
|
|
@ -1,94 +0,0 @@
|
||||||
AC_DEFUN([AX_CFLAGS_WARN_ALL_ANSI],[dnl
|
|
||||||
AS_VAR_PUSHDEF([FLAGS],[CFLAGS])dnl
|
|
||||||
AS_VAR_PUSHDEF([VAR],[ac_cv_cflags_warn_all_ansi])dnl
|
|
||||||
AC_CACHE_CHECK([m4_ifval($1,$1,FLAGS) for maximum ansi warnings],
|
|
||||||
VAR,[VAR="no, unknown"
|
|
||||||
AC_LANG_SAVE
|
|
||||||
AC_LANG_C
|
|
||||||
ac_save_[]FLAGS="$[]FLAGS"
|
|
||||||
# IRIX C compiler:
|
|
||||||
# -use_readonly_const is the default for IRIX C,
|
|
||||||
# puts them into .rodata, but they are copied later.
|
|
||||||
# need to be "-G0 -rdatashared" for strictmode but
|
|
||||||
# I am not sure what effect that has really. - guidod
|
|
||||||
for ac_arg dnl
|
|
||||||
in "-pedantic % -Wall -std=c99 -pedantic" dnl GCC
|
|
||||||
"-xstrconst % -v -xc99=all" dnl Solaris C
|
|
||||||
"-std1 % -verbose -w0 -warnprotos -std1" dnl Digital Unix
|
|
||||||
" % -qlanglvl=ansi -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" dnl AIX
|
|
||||||
" % -ansi -ansiE -fullwarn" dnl IRIX
|
|
||||||
"+ESlit % +w1 -Aa" dnl HP-UX C
|
|
||||||
"-Xc % -pvctl[,]fullmsg -Xc" dnl NEC SX-5 (Super-UX 10)
|
|
||||||
"-h conform % -h msglevel 2 -h conform" dnl Cray C (Unicos)
|
|
||||||
#
|
|
||||||
do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
|
|
||||||
AC_TRY_COMPILE([],[return 0;],
|
|
||||||
[VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])
|
|
||||||
done
|
|
||||||
FLAGS="$ac_save_[]FLAGS"
|
|
||||||
AC_LANG_RESTORE
|
|
||||||
])
|
|
||||||
case ".$VAR" in
|
|
||||||
.ok|.ok,*) m4_ifvaln($3,$3) ;;
|
|
||||||
.|.no|.no,*) m4_ifvaln($4,$4,[m4_ifval($2,[
|
|
||||||
AC_RUN_LOG([: m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $2"])
|
|
||||||
m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $2"])]) ;;
|
|
||||||
*) m4_ifvaln($3,$3,[
|
|
||||||
if echo " $[]m4_ifval($1,$1,FLAGS) " | grep " $VAR " 2>&1 >/dev/null
|
|
||||||
then AC_RUN_LOG([: m4_ifval($1,$1,FLAGS) does contain $VAR])
|
|
||||||
else AC_RUN_LOG([: m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $VAR"])
|
|
||||||
m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $VAR"
|
|
||||||
fi ]) ;;
|
|
||||||
esac
|
|
||||||
AS_VAR_POPDEF([VAR])dnl
|
|
||||||
AS_VAR_POPDEF([FLAGS])dnl
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl the only difference - the LANG selection... and the default FLAGS
|
|
||||||
|
|
||||||
AC_DEFUN([AX_CXXFLAGS_WARN_ALL_ANSI],[dnl
|
|
||||||
AS_VAR_PUSHDEF([FLAGS],[CXXFLAGS])dnl
|
|
||||||
AS_VAR_PUSHDEF([VAR],[ac_cv_cxxflags_warn_all_ansi])dnl
|
|
||||||
AC_CACHE_CHECK([m4_ifval($1,$1,FLAGS) for maximum ansi warnings],
|
|
||||||
VAR,[VAR="no, unknown"
|
|
||||||
AC_LANG_SAVE
|
|
||||||
AC_LANG_CXX
|
|
||||||
ac_save_[]FLAGS="$[]FLAGS"
|
|
||||||
# IRIX C compiler:
|
|
||||||
# -use_readonly_const is the default for IRIX C,
|
|
||||||
# puts them into .rodata, but they are copied later.
|
|
||||||
# need to be "-G0 -rdatashared" for strictmode but
|
|
||||||
# I am not sure what effect that has really. - guidod
|
|
||||||
for ac_arg dnl
|
|
||||||
in "-pedantic % -Wall -ansi -pedantic" dnl GCC
|
|
||||||
"-xstrconst % -v -Xc" dnl Solaris C
|
|
||||||
"-std1 % -verbose -w0 -warnprotos -std1" dnl Digital Unix
|
|
||||||
" % -qlanglvl=ansi -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" dnl AIX
|
|
||||||
" % -ansi -ansiE -fullwarn" dnl IRIX
|
|
||||||
"+ESlit % +w1 -Aa" dnl HP-UX C
|
|
||||||
"-Xc % -pvctl[,]fullmsg -Xc" dnl NEC SX-5 (Super-UX 10)
|
|
||||||
"-h conform % -h msglevel 2 -h conform" dnl Cray C (Unicos)
|
|
||||||
#
|
|
||||||
do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
|
|
||||||
AC_TRY_COMPILE([],[return 0;],
|
|
||||||
[VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])
|
|
||||||
done
|
|
||||||
FLAGS="$ac_save_[]FLAGS"
|
|
||||||
AC_LANG_RESTORE
|
|
||||||
])
|
|
||||||
case ".$VAR" in
|
|
||||||
.ok|.ok,*) m4_ifvaln($3,$3) ;;
|
|
||||||
.|.no|.no,*) m4_ifvaln($4,$4,[m4_ifval($2,[
|
|
||||||
AC_RUN_LOG([: m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $2"])
|
|
||||||
m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $2"])]) ;;
|
|
||||||
*) m4_ifvaln($3,$3,[
|
|
||||||
if echo " $[]m4_ifval($1,$1,FLAGS) " | grep " $VAR " 2>&1 >/dev/null
|
|
||||||
then AC_RUN_LOG([: m4_ifval($1,$1,FLAGS) does contain $VAR])
|
|
||||||
else AC_RUN_LOG([: m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $VAR"])
|
|
||||||
m4_ifval($1,$1,FLAGS)="$m4_ifval($1,$1,FLAGS) $VAR"
|
|
||||||
fi ]) ;;
|
|
||||||
esac
|
|
||||||
AS_VAR_POPDEF([VAR])dnl
|
|
||||||
AS_VAR_POPDEF([FLAGS])dnl
|
|
||||||
])
|
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
AC_DEFUN([AX_CHECK_COMPILER_FLAGS],
|
|
||||||
[AC_PREREQ(2.59) dnl for _AC_LANG_PREFIX
|
|
||||||
AC_MSG_CHECKING([whether _AC_LANG compiler accepts $1])
|
|
||||||
dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname:
|
|
||||||
AS_LITERAL_IF([$1],
|
|
||||||
[AC_CACHE_VAL(AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_$1), [
|
|
||||||
ax_save_FLAGS=$[]_AC_LANG_PREFIX[]FLAGS
|
|
||||||
_AC_LANG_PREFIX[]FLAGS="$1"
|
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
|
|
||||||
AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_$1)=yes,
|
|
||||||
AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_$1)=no)
|
|
||||||
_AC_LANG_PREFIX[]FLAGS=$ax_save_FLAGS])],
|
|
||||||
[ax_save_FLAGS=$[]_AC_LANG_PREFIX[]FLAGS
|
|
||||||
_AC_LANG_PREFIX[]FLAGS="$1"
|
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
|
|
||||||
eval AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_$1)=yes,
|
|
||||||
eval AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_$1)=no)
|
|
||||||
_AC_LANG_PREFIX[]FLAGS=$ax_save_FLAGS])
|
|
||||||
eval ax_check_compiler_flags=$AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_$1)
|
|
||||||
AC_MSG_RESULT($ax_check_compiler_flags)
|
|
||||||
if test "x$ax_check_compiler_flags" = xyes; then
|
|
||||||
m4_default([$2], :)
|
|
||||||
else
|
|
||||||
m4_default([$3], :)
|
|
||||||
fi
|
|
||||||
])dnl AX_CHECK_COMPILER_FLAG
|
|
|
@ -1,15 +0,0 @@
|
||||||
AC_DEFUN([AX_COMPILER_VENDOR],
|
|
||||||
[
|
|
||||||
AC_CACHE_CHECK([for _AC_LANG compiler vendor], ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor,
|
|
||||||
[ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor=unknown
|
|
||||||
# note: don't check for gcc first since some other compilers define __GNUC__
|
|
||||||
for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
|
|
||||||
vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
|
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[
|
|
||||||
#if !($vencpp)
|
|
||||||
thisisanerror;
|
|
||||||
#endif
|
|
||||||
])], [ax_cv_]_AC_LANG_ABBREV[_compiler_vendor=`echo $ventest | cut -d: -f1`; break])
|
|
||||||
done
|
|
||||||
])
|
|
||||||
])
|
|
|
@ -1,142 +0,0 @@
|
||||||
#! /bin/sh
|
|
||||||
# Wrapper for compilers which do not understand `-c -o'.
|
|
||||||
|
|
||||||
scriptversion=2005-05-14.22
|
|
||||||
|
|
||||||
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
|
|
||||||
# Written by Tom Tromey <tromey@cygnus.com>.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2, or (at your option)
|
|
||||||
# any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
|
|
||||||
# As a special exception to the GNU General Public License, if you
|
|
||||||
# distribute this file as part of a program that contains a
|
|
||||||
# configuration script generated by Autoconf, you may include it under
|
|
||||||
# the same distribution terms that you use for the rest of that program.
|
|
||||||
|
|
||||||
# This file is maintained in Automake, please report
|
|
||||||
# bugs to <bug-automake@gnu.org> or send patches to
|
|
||||||
# <automake-patches@gnu.org>.
|
|
||||||
|
|
||||||
case $1 in
|
|
||||||
'')
|
|
||||||
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
-h | --h*)
|
|
||||||
cat <<\EOF
|
|
||||||
Usage: compile [--help] [--version] PROGRAM [ARGS]
|
|
||||||
|
|
||||||
Wrapper for compilers which do not understand `-c -o'.
|
|
||||||
Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
|
|
||||||
arguments, and rename the output as expected.
|
|
||||||
|
|
||||||
If you are trying to build a whole package this is not the
|
|
||||||
right script to run: please start by reading the file `INSTALL'.
|
|
||||||
|
|
||||||
Report bugs to <bug-automake@gnu.org>.
|
|
||||||
EOF
|
|
||||||
exit $?
|
|
||||||
;;
|
|
||||||
-v | --v*)
|
|
||||||
echo "compile $scriptversion"
|
|
||||||
exit $?
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
ofile=
|
|
||||||
cfile=
|
|
||||||
eat=
|
|
||||||
|
|
||||||
for arg
|
|
||||||
do
|
|
||||||
if test -n "$eat"; then
|
|
||||||
eat=
|
|
||||||
else
|
|
||||||
case $1 in
|
|
||||||
-o)
|
|
||||||
# configure might choose to run compile as `compile cc -o foo foo.c'.
|
|
||||||
# So we strip `-o arg' only if arg is an object.
|
|
||||||
eat=1
|
|
||||||
case $2 in
|
|
||||||
*.o | *.obj)
|
|
||||||
ofile=$2
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
set x "$@" -o "$2"
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
*.c)
|
|
||||||
cfile=$1
|
|
||||||
set x "$@" "$1"
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
set x "$@" "$1"
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
|
|
||||||
if test -z "$ofile" || test -z "$cfile"; then
|
|
||||||
# If no `-o' option was seen then we might have been invoked from a
|
|
||||||
# pattern rule where we don't need one. That is ok -- this is a
|
|
||||||
# normal compilation that the losing compiler can handle. If no
|
|
||||||
# `.c' file was seen then we are probably linking. That is also
|
|
||||||
# ok.
|
|
||||||
exec "$@"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Name of file we expect compiler to create.
|
|
||||||
cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
|
|
||||||
|
|
||||||
# Create the lock directory.
|
|
||||||
# Note: use `[/.-]' here to ensure that we don't use the same name
|
|
||||||
# that we are using for the .o file. Also, base the name on the expected
|
|
||||||
# object file name, since that is what matters with a parallel build.
|
|
||||||
lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
|
|
||||||
while true; do
|
|
||||||
if mkdir "$lockdir" >/dev/null 2>&1; then
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
# FIXME: race condition here if user kills between mkdir and trap.
|
|
||||||
trap "rmdir '$lockdir'; exit 1" 1 2 15
|
|
||||||
|
|
||||||
# Run the compile.
|
|
||||||
"$@"
|
|
||||||
ret=$?
|
|
||||||
|
|
||||||
if test -f "$cofile"; then
|
|
||||||
mv "$cofile" "$ofile"
|
|
||||||
elif test -f "${cofile}bj"; then
|
|
||||||
mv "${cofile}bj" "$ofile"
|
|
||||||
fi
|
|
||||||
|
|
||||||
rmdir "$lockdir"
|
|
||||||
exit $ret
|
|
||||||
|
|
||||||
# Local Variables:
|
|
||||||
# mode: shell-script
|
|
||||||
# sh-indentation: 2
|
|
||||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
|
||||||
# time-stamp-start: "scriptversion="
|
|
||||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
|
||||||
# time-stamp-end: "$"
|
|
||||||
# End:
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,149 +0,0 @@
|
||||||
# -*- Autoconf -*-
|
|
||||||
# Process this file with autoconf to produce a configure script.
|
|
||||||
|
|
||||||
|
|
||||||
AC_INIT(libdingaling, 0.1)
|
|
||||||
AC_CONFIG_AUX_DIR(build)
|
|
||||||
AM_INIT_AUTOMAKE
|
|
||||||
AC_CONFIG_SRCDIR([src])
|
|
||||||
AC_CONFIG_HEADERS([src/config.h])
|
|
||||||
|
|
||||||
CFLAGS="$CFLAGS $CONFIGURE_CFLAGS"
|
|
||||||
CXXFLAGS="$CXXFLAGS $CONFIGURE_CXXFLAGS"
|
|
||||||
LDFLAGS="$LDFLAGS $CONFIGURE_LDFLAGS"
|
|
||||||
|
|
||||||
#Set default language
|
|
||||||
AC_LANG_C
|
|
||||||
# Checks for programs.
|
|
||||||
AC_PROG_CC
|
|
||||||
AC_PROG_MAKE_SET
|
|
||||||
AC_PROG_LIBTOOL
|
|
||||||
AC_PROG_INSTALL
|
|
||||||
|
|
||||||
#Check for compiler vendor
|
|
||||||
AX_COMPILER_VENDOR
|
|
||||||
|
|
||||||
# Optimize
|
|
||||||
AC_ARG_ENABLE(optimization,
|
|
||||||
[AC_HELP_STRING([--enable-optimization],[Set if you want us to add max optimising compiler flags])],[enable_optimizer="$enableval"],[enable_optimizer="no"])
|
|
||||||
|
|
||||||
if test "${enable_optimizer}" = "yes" ; then
|
|
||||||
AC_DEFINE([OPTIMZER],[],[Enable Optimization.])
|
|
||||||
AX_CC_MAXOPT
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Enable debugging
|
|
||||||
AC_ARG_ENABLE(debug,
|
|
||||||
[AC_HELP_STRING([--enable-debug],[build with debug information])],[enable_debug="$enable_debug"],[enable_debug="yes"])
|
|
||||||
|
|
||||||
if test "${enable_debug}" = "yes"; then
|
|
||||||
AC_DEFINE([DEBUG],[],[Enable extra debugging.])
|
|
||||||
AX_CFLAGS_WARN_ALL_ANSI
|
|
||||||
fi
|
|
||||||
|
|
||||||
AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
|
|
||||||
|
|
||||||
|
|
||||||
case "$host" in
|
|
||||||
*-solaris2*)
|
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
|
||||||
SOLINK="-Bdynamic -dy -G"
|
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
|
||||||
new_AM_LDFLAGS="-R${prefix}/lib"
|
|
||||||
FUNC_DEF=__func__
|
|
||||||
IN_LINE=""
|
|
||||||
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
|
||||||
SOLINK="-Bdynamic -dy -G"
|
|
||||||
new_AM_CFLAGS="-fPIC"
|
|
||||||
new_AM_LDFLAGS=""
|
|
||||||
IN_LINE=inline
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
*-darwin*)
|
|
||||||
if test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
|
||||||
SOLINK="-dynamic -bundle -force-flat-namespace"
|
|
||||||
new_AM_CFLAGS="-DMACOSX"
|
|
||||||
new_AM_LDFLAGS=""
|
|
||||||
fi
|
|
||||||
IN_LINE=inline
|
|
||||||
;;
|
|
||||||
x86_64-*-linux-gnu)
|
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
|
||||||
SOLINK="-Bdynamic -dy -G"
|
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
|
||||||
new_AM_LDFLAGS="-R${prefix}/lib"
|
|
||||||
FUNC_DEF=__func__
|
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
|
||||||
SOLINK="-shared -Xlinker -x"
|
|
||||||
new_AM_CFLAGS="-fPIC"
|
|
||||||
new_AM_LDFLAGS=""
|
|
||||||
fi
|
|
||||||
IN_LINE=inline
|
|
||||||
;;
|
|
||||||
i*6-*-linux-gnu)
|
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
|
||||||
SOLINK="-Bdynamic -dy -G"
|
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
|
||||||
new_AM_LDFLAGS="-R${prefix}/lib"
|
|
||||||
FUNC_DEF=__func__
|
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
|
||||||
SOLINK="-shared -Xlinker -x"
|
|
||||||
new_AM_CFLAGS="-fpic"
|
|
||||||
new_AM_LDFLAGS=""
|
|
||||||
fi
|
|
||||||
IN_LINE=inline
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
|
||||||
SOLINK="-Bdynamic -dy -G"
|
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
|
||||||
new_AM_LDFLAGS="-R${prefix}/lib"
|
|
||||||
FUNC_DEF=__func__
|
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
|
||||||
SOLINK="-shared -Xlinker -x"
|
|
||||||
new_AM_CFLAGS="-fPIC"
|
|
||||||
new_AM_LDFLAGS=""
|
|
||||||
fi
|
|
||||||
IN_LINE=inline
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Enable 64 bit build
|
|
||||||
AC_ARG_ENABLE(64,
|
|
||||||
[AC_HELP_STRING([--enable-64],[build with 64 bit support])],[enable_64="$enable_64"],[enable_64="no"])
|
|
||||||
|
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
|
||||||
if test "${enable_64}" = "yes"; then
|
|
||||||
new_AM_CFLAGS="$new_AM_CFLAGS -m64"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST(new_AM_CFLAGS)
|
|
||||||
AC_SUBST(new_AM_LDFLAGS)
|
|
||||||
AC_SUBST(SOLINK)
|
|
||||||
AC_DEFINE_UNQUOTED([__inline__],[$IN_LINE],[sunpro is bad at inline])
|
|
||||||
|
|
||||||
# Checks for header files.
|
|
||||||
AC_HEADER_DIRENT
|
|
||||||
AC_HEADER_STDC
|
|
||||||
#AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h])
|
|
||||||
|
|
||||||
# Checks for typedefs, structures, and compiler characteristics.
|
|
||||||
AC_C_CONST
|
|
||||||
AC_C_INLINE
|
|
||||||
AC_TYPE_SIZE_T
|
|
||||||
AC_HEADER_TIME
|
|
||||||
AC_STRUCT_TM
|
|
||||||
|
|
||||||
# Checks for library functions.
|
|
||||||
AC_PROG_GCC_TRADITIONAL
|
|
||||||
AC_TYPE_SIGNAL
|
|
||||||
AC_FUNC_STRFTIME
|
|
||||||
#AC_CHECK_FUNCS([gethostname gettimeofday localtime_r memmove memset socket strcasecmp strchr strdup strncasecmp strstr])
|
|
||||||
|
|
||||||
AC_C_BIGENDIAN(AC_DEFINE([__BYTE_ORDER],__BIG_ENDIAN,[Big Endian]),AC_DEFINE([__BYTE_ORDER],__LITTLE_ENDIAN,[Little Endian]))
|
|
||||||
AC_DEFINE([__LITTLE_ENDIAN],1234,[for the places where it is not defined])
|
|
||||||
AC_DEFINE([__BIG_ENDIAN],4321,[for the places where it is not defined])
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile])
|
|
||||||
|
|
||||||
AC_OUTPUT
|
|
|
@ -1,4 +0,0 @@
|
||||||
#! /bin/sh
|
|
||||||
srcpath=$(dirname $0 2>/dev/null ) || srcpath="."
|
|
||||||
$srcpath/configure "$@" --disable-shared
|
|
||||||
|
|
|
@ -1,530 +0,0 @@
|
||||||
#! /bin/sh
|
|
||||||
# depcomp - compile a program generating dependencies as side-effects
|
|
||||||
|
|
||||||
scriptversion=2005-07-09.11
|
|
||||||
|
|
||||||
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2, or (at your option)
|
|
||||||
# any later version.
|
|
||||||
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
||||||
# 02110-1301, USA.
|
|
||||||
|
|
||||||
# As a special exception to the GNU General Public License, if you
|
|
||||||
# distribute this file as part of a program that contains a
|
|
||||||
# configuration script generated by Autoconf, you may include it under
|
|
||||||
# the same distribution terms that you use for the rest of that program.
|
|
||||||
|
|
||||||
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
|
|
||||||
|
|
||||||
case $1 in
|
|
||||||
'')
|
|
||||||
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
-h | --h*)
|
|
||||||
cat <<\EOF
|
|
||||||
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
|
|
||||||
|
|
||||||
Run PROGRAMS ARGS to compile a file, generating dependencies
|
|
||||||
as side-effects.
|
|
||||||
|
|
||||||
Environment variables:
|
|
||||||
depmode Dependency tracking mode.
|
|
||||||
source Source file read by `PROGRAMS ARGS'.
|
|
||||||
object Object file output by `PROGRAMS ARGS'.
|
|
||||||
DEPDIR directory where to store dependencies.
|
|
||||||
depfile Dependency file to output.
|
|
||||||
tmpdepfile Temporary file to use when outputing dependencies.
|
|
||||||
libtool Whether libtool is used (yes/no).
|
|
||||||
|
|
||||||
Report bugs to <bug-automake@gnu.org>.
|
|
||||||
EOF
|
|
||||||
exit $?
|
|
||||||
;;
|
|
||||||
-v | --v*)
|
|
||||||
echo "depcomp $scriptversion"
|
|
||||||
exit $?
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
|
||||||
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
|
|
||||||
depfile=${depfile-`echo "$object" |
|
|
||||||
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
|
|
||||||
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
|
||||||
|
|
||||||
rm -f "$tmpdepfile"
|
|
||||||
|
|
||||||
# Some modes work just like other modes, but use different flags. We
|
|
||||||
# parameterize here, but still list the modes in the big case below,
|
|
||||||
# to make depend.m4 easier to write. Note that we *cannot* use a case
|
|
||||||
# here, because this file can only contain one case statement.
|
|
||||||
if test "$depmode" = hp; then
|
|
||||||
# HP compiler uses -M and no extra arg.
|
|
||||||
gccflag=-M
|
|
||||||
depmode=gcc
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$depmode" = dashXmstdout; then
|
|
||||||
# This is just like dashmstdout with a different argument.
|
|
||||||
dashmflag=-xM
|
|
||||||
depmode=dashmstdout
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "$depmode" in
|
|
||||||
gcc3)
|
|
||||||
## gcc 3 implements dependency tracking that does exactly what
|
|
||||||
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
|
|
||||||
## it if -MD -MP comes after the -MF stuff. Hmm.
|
|
||||||
"$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
|
|
||||||
stat=$?
|
|
||||||
if test $stat -eq 0; then :
|
|
||||||
else
|
|
||||||
rm -f "$tmpdepfile"
|
|
||||||
exit $stat
|
|
||||||
fi
|
|
||||||
mv "$tmpdepfile" "$depfile"
|
|
||||||
;;
|
|
||||||
|
|
||||||
gcc)
|
|
||||||
## There are various ways to get dependency output from gcc. Here's
|
|
||||||
## why we pick this rather obscure method:
|
|
||||||
## - Don't want to use -MD because we'd like the dependencies to end
|
|
||||||
## up in a subdir. Having to rename by hand is ugly.
|
|
||||||
## (We might end up doing this anyway to support other compilers.)
|
|
||||||
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
|
|
||||||
## -MM, not -M (despite what the docs say).
|
|
||||||
## - Using -M directly means running the compiler twice (even worse
|
|
||||||
## than renaming).
|
|
||||||
if test -z "$gccflag"; then
|
|
||||||
gccflag=-MD,
|
|
||||||
fi
|
|
||||||
"$@" -Wp,"$gccflag$tmpdepfile"
|
|
||||||
stat=$?
|
|
||||||
if test $stat -eq 0; then :
|
|
||||||
else
|
|
||||||
rm -f "$tmpdepfile"
|
|
||||||
exit $stat
|
|
||||||
fi
|
|
||||||
rm -f "$depfile"
|
|
||||||
echo "$object : \\" > "$depfile"
|
|
||||||
alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
|
|
||||||
## The second -e expression handles DOS-style file names with drive letters.
|
|
||||||
sed -e 's/^[^:]*: / /' \
|
|
||||||
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
|
|
||||||
## This next piece of magic avoids the `deleted header file' problem.
|
|
||||||
## The problem is that when a header file which appears in a .P file
|
|
||||||
## is deleted, the dependency causes make to die (because there is
|
|
||||||
## typically no way to rebuild the header). We avoid this by adding
|
|
||||||
## dummy dependencies for each header file. Too bad gcc doesn't do
|
|
||||||
## this for us directly.
|
|
||||||
tr ' ' '
|
|
||||||
' < "$tmpdepfile" |
|
|
||||||
## Some versions of gcc put a space before the `:'. On the theory
|
|
||||||
## that the space means something, we add a space to the output as
|
|
||||||
## well.
|
|
||||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
|
||||||
## correctly. Breaking it into two sed invocations is a workaround.
|
|
||||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
|
||||||
rm -f "$tmpdepfile"
|
|
||||||
;;
|
|
||||||
|
|
||||||
hp)
|
|
||||||
# This case exists only to let depend.m4 do its work. It works by
|
|
||||||
# looking at the text of this script. This case will never be run,
|
|
||||||
# since it is checked for above.
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
|
|
||||||
sgi)
|
|
||||||
if test "$libtool" = yes; then
|
|
||||||
"$@" "-Wp,-MDupdate,$tmpdepfile"
|
|
||||||
else
|
|
||||||
"$@" -MDupdate "$tmpdepfile"
|
|
||||||
fi
|
|
||||||
stat=$?
|
|
||||||
if test $stat -eq 0; then :
|
|
||||||
else
|
|
||||||
rm -f "$tmpdepfile"
|
|
||||||
exit $stat
|
|
||||||
fi
|
|
||||||
rm -f "$depfile"
|
|
||||||
|
|
||||||
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
|
|
||||||
echo "$object : \\" > "$depfile"
|
|
||||||
|
|
||||||
# Clip off the initial element (the dependent). Don't try to be
|
|
||||||
# clever and replace this with sed code, as IRIX sed won't handle
|
|
||||||
# lines with more than a fixed number of characters (4096 in
|
|
||||||
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
|
|
||||||
# the IRIX cc adds comments like `#:fec' to the end of the
|
|
||||||
# dependency line.
|
|
||||||
tr ' ' '
|
|
||||||
' < "$tmpdepfile" \
|
|
||||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
|
|
||||||
tr '
|
|
||||||
' ' ' >> $depfile
|
|
||||||
echo >> $depfile
|
|
||||||
|
|
||||||
# The second pass generates a dummy entry for each header file.
|
|
||||||
tr ' ' '
|
|
||||||
' < "$tmpdepfile" \
|
|
||||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
|
|
||||||
>> $depfile
|
|
||||||
else
|
|
||||||
# The sourcefile does not contain any dependencies, so just
|
|
||||||
# store a dummy comment line, to avoid errors with the Makefile
|
|
||||||
# "include basename.Plo" scheme.
|
|
||||||
echo "#dummy" > "$depfile"
|
|
||||||
fi
|
|
||||||
rm -f "$tmpdepfile"
|
|
||||||
;;
|
|
||||||
|
|
||||||
aix)
|
|
||||||
# The C for AIX Compiler uses -M and outputs the dependencies
|
|
||||||
# in a .u file. In older versions, this file always lives in the
|
|
||||||
# current directory. Also, the AIX compiler puts `$object:' at the
|
|
||||||
# start of each line; $object doesn't have directory information.
|
|
||||||
# Version 6 uses the directory in both cases.
|
|
||||||
stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
|
|
||||||
tmpdepfile="$stripped.u"
|
|
||||||
if test "$libtool" = yes; then
|
|
||||||
"$@" -Wc,-M
|
|
||||||
else
|
|
||||||
"$@" -M
|
|
||||||
fi
|
|
||||||
stat=$?
|
|
||||||
|
|
||||||
if test -f "$tmpdepfile"; then :
|
|
||||||
else
|
|
||||||
stripped=`echo "$stripped" | sed 's,^.*/,,'`
|
|
||||||
tmpdepfile="$stripped.u"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test $stat -eq 0; then :
|
|
||||||
else
|
|
||||||
rm -f "$tmpdepfile"
|
|
||||||
exit $stat
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test -f "$tmpdepfile"; then
|
|
||||||
outname="$stripped.o"
|
|
||||||
# Each line is of the form `foo.o: dependent.h'.
|
|
||||||
# Do two passes, one to just change these to
|
|
||||||
# `$object: dependent.h' and one to simply `dependent.h:'.
|
|
||||||
sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
|
|
||||||
sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
|
|
||||||
else
|
|
||||||
# The sourcefile does not contain any dependencies, so just
|
|
||||||
# store a dummy comment line, to avoid errors with the Makefile
|
|
||||||
# "include basename.Plo" scheme.
|
|
||||||
echo "#dummy" > "$depfile"
|
|
||||||
fi
|
|
||||||
rm -f "$tmpdepfile"
|
|
||||||
;;
|
|
||||||
|
|
||||||
icc)
|
|
||||||
# Intel's C compiler understands `-MD -MF file'. However on
|
|
||||||
# icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
|
|
||||||
# ICC 7.0 will fill foo.d with something like
|
|
||||||
# foo.o: sub/foo.c
|
|
||||||
# foo.o: sub/foo.h
|
|
||||||
# which is wrong. We want:
|
|
||||||
# sub/foo.o: sub/foo.c
|
|
||||||
# sub/foo.o: sub/foo.h
|
|
||||||
# sub/foo.c:
|
|
||||||
# sub/foo.h:
|
|
||||||
# ICC 7.1 will output
|
|
||||||
# foo.o: sub/foo.c sub/foo.h
|
|
||||||
# and will wrap long lines using \ :
|
|
||||||
# foo.o: sub/foo.c ... \
|
|
||||||
# sub/foo.h ... \
|
|
||||||
# ...
|
|
||||||
|
|
||||||
"$@" -MD -MF "$tmpdepfile"
|
|
||||||
stat=$?
|
|
||||||
if test $stat -eq 0; then :
|
|
||||||
else
|
|
||||||
rm -f "$tmpdepfile"
|
|
||||||
exit $stat
|
|
||||||
fi
|
|
||||||
rm -f "$depfile"
|
|
||||||
# Each line is of the form `foo.o: dependent.h',
|
|
||||||
# or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
|
|
||||||
# Do two passes, one to just change these to
|
|
||||||
# `$object: dependent.h' and one to simply `dependent.h:'.
|
|
||||||
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
|
|
||||||
# Some versions of the HPUX 10.20 sed can't process this invocation
|
|
||||||
# correctly. Breaking it into two sed invocations is a workaround.
|
|
||||||
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
|
|
||||||
sed -e 's/$/ :/' >> "$depfile"
|
|
||||||
rm -f "$tmpdepfile"
|
|
||||||
;;
|
|
||||||
|
|
||||||
tru64)
|
|
||||||
# The Tru64 compiler uses -MD to generate dependencies as a side
|
|
||||||
# effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
|
|
||||||
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
|
|
||||||
# dependencies in `foo.d' instead, so we check for that too.
|
|
||||||
# Subdirectories are respected.
|
|
||||||
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
|
|
||||||
test "x$dir" = "x$object" && dir=
|
|
||||||
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
|
||||||
|
|
||||||
if test "$libtool" = yes; then
|
|
||||||
# With Tru64 cc, shared objects can also be used to make a
|
|
||||||
# static library. This mecanism is used in libtool 1.4 series to
|
|
||||||
# handle both shared and static libraries in a single compilation.
|
|
||||||
# With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
|
|
||||||
#
|
|
||||||
# With libtool 1.5 this exception was removed, and libtool now
|
|
||||||
# generates 2 separate objects for the 2 libraries. These two
|
|
||||||
# compilations output dependencies in in $dir.libs/$base.o.d and
|
|
||||||
# in $dir$base.o.d. We have to check for both files, because
|
|
||||||
# one of the two compilations can be disabled. We should prefer
|
|
||||||
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
|
|
||||||
# automatically cleaned when .libs/ is deleted, while ignoring
|
|
||||||
# the former would cause a distcleancheck panic.
|
|
||||||
tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
|
|
||||||
tmpdepfile2=$dir$base.o.d # libtool 1.5
|
|
||||||
tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
|
|
||||||
tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
|
|
||||||
"$@" -Wc,-MD
|
|
||||||
else
|
|
||||||
tmpdepfile1=$dir$base.o.d
|
|
||||||
tmpdepfile2=$dir$base.d
|
|
||||||
tmpdepfile3=$dir$base.d
|
|
||||||
tmpdepfile4=$dir$base.d
|
|
||||||
"$@" -MD
|
|
||||||
fi
|
|
||||||
|
|
||||||
stat=$?
|
|
||||||
if test $stat -eq 0; then :
|
|
||||||
else
|
|
||||||
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
|
||||||
exit $stat
|
|
||||||
fi
|
|
||||||
|
|
||||||
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
|
||||||
do
|
|
||||||
test -f "$tmpdepfile" && break
|
|
||||||
done
|
|
||||||
if test -f "$tmpdepfile"; then
|
|
||||||
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
|
|
||||||
# That's a tab and a space in the [].
|
|
||||||
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
|
|
||||||
else
|
|
||||||
echo "#dummy" > "$depfile"
|
|
||||||
fi
|
|
||||||
rm -f "$tmpdepfile"
|
|
||||||
;;
|
|
||||||
|
|
||||||
#nosideeffect)
|
|
||||||
# This comment above is used by automake to tell side-effect
|
|
||||||
# dependency tracking mechanisms from slower ones.
|
|
||||||
|
|
||||||
dashmstdout)
|
|
||||||
# Important note: in order to support this mode, a compiler *must*
|
|
||||||
# always write the preprocessed file to stdout, regardless of -o.
|
|
||||||
"$@" || exit $?
|
|
||||||
|
|
||||||
# Remove the call to Libtool.
|
|
||||||
if test "$libtool" = yes; then
|
|
||||||
while test $1 != '--mode=compile'; do
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
shift
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove `-o $object'.
|
|
||||||
IFS=" "
|
|
||||||
for arg
|
|
||||||
do
|
|
||||||
case $arg in
|
|
||||||
-o)
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
$object)
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
set fnord "$@" "$arg"
|
|
||||||
shift # fnord
|
|
||||||
shift # $arg
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
test -z "$dashmflag" && dashmflag=-M
|
|
||||||
# Require at least two characters before searching for `:'
|
|
||||||
# in the target name. This is to cope with DOS-style filenames:
|
|
||||||
# a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
|
|
||||||
"$@" $dashmflag |
|
|
||||||
sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
|
|
||||||
rm -f "$depfile"
|
|
||||||
cat < "$tmpdepfile" > "$depfile"
|
|
||||||
tr ' ' '
|
|
||||||
' < "$tmpdepfile" | \
|
|
||||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
|
||||||
## correctly. Breaking it into two sed invocations is a workaround.
|
|
||||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
|
||||||
rm -f "$tmpdepfile"
|
|
||||||
;;
|
|
||||||
|
|
||||||
dashXmstdout)
|
|
||||||
# This case only exists to satisfy depend.m4. It is never actually
|
|
||||||
# run, as this mode is specially recognized in the preamble.
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
|
|
||||||
makedepend)
|
|
||||||
"$@" || exit $?
|
|
||||||
# Remove any Libtool call
|
|
||||||
if test "$libtool" = yes; then
|
|
||||||
while test $1 != '--mode=compile'; do
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
shift
|
|
||||||
fi
|
|
||||||
# X makedepend
|
|
||||||
shift
|
|
||||||
cleared=no
|
|
||||||
for arg in "$@"; do
|
|
||||||
case $cleared in
|
|
||||||
no)
|
|
||||||
set ""; shift
|
|
||||||
cleared=yes ;;
|
|
||||||
esac
|
|
||||||
case "$arg" in
|
|
||||||
-D*|-I*)
|
|
||||||
set fnord "$@" "$arg"; shift ;;
|
|
||||||
# Strip any option that makedepend may not understand. Remove
|
|
||||||
# the object too, otherwise makedepend will parse it as a source file.
|
|
||||||
-*|$object)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
set fnord "$@" "$arg"; shift ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
obj_suffix="`echo $object | sed 's/^.*\././'`"
|
|
||||||
touch "$tmpdepfile"
|
|
||||||
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
|
|
||||||
rm -f "$depfile"
|
|
||||||
cat < "$tmpdepfile" > "$depfile"
|
|
||||||
sed '1,2d' "$tmpdepfile" | tr ' ' '
|
|
||||||
' | \
|
|
||||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
|
||||||
## correctly. Breaking it into two sed invocations is a workaround.
|
|
||||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
|
||||||
rm -f "$tmpdepfile" "$tmpdepfile".bak
|
|
||||||
;;
|
|
||||||
|
|
||||||
cpp)
|
|
||||||
# Important note: in order to support this mode, a compiler *must*
|
|
||||||
# always write the preprocessed file to stdout.
|
|
||||||
"$@" || exit $?
|
|
||||||
|
|
||||||
# Remove the call to Libtool.
|
|
||||||
if test "$libtool" = yes; then
|
|
||||||
while test $1 != '--mode=compile'; do
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
shift
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove `-o $object'.
|
|
||||||
IFS=" "
|
|
||||||
for arg
|
|
||||||
do
|
|
||||||
case $arg in
|
|
||||||
-o)
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
$object)
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
set fnord "$@" "$arg"
|
|
||||||
shift # fnord
|
|
||||||
shift # $arg
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
"$@" -E |
|
|
||||||
sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
|
|
||||||
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
|
|
||||||
sed '$ s: \\$::' > "$tmpdepfile"
|
|
||||||
rm -f "$depfile"
|
|
||||||
echo "$object : \\" > "$depfile"
|
|
||||||
cat < "$tmpdepfile" >> "$depfile"
|
|
||||||
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
|
|
||||||
rm -f "$tmpdepfile"
|
|
||||||
;;
|
|
||||||
|
|
||||||
msvisualcpp)
|
|
||||||
# Important note: in order to support this mode, a compiler *must*
|
|
||||||
# always write the preprocessed file to stdout, regardless of -o,
|
|
||||||
# because we must use -o when running libtool.
|
|
||||||
"$@" || exit $?
|
|
||||||
IFS=" "
|
|
||||||
for arg
|
|
||||||
do
|
|
||||||
case "$arg" in
|
|
||||||
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
|
|
||||||
set fnord "$@"
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
set fnord "$@" "$arg"
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
"$@" -E |
|
|
||||||
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
|
|
||||||
rm -f "$depfile"
|
|
||||||
echo "$object : \\" > "$depfile"
|
|
||||||
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
|
|
||||||
echo " " >> "$depfile"
|
|
||||||
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
|
|
||||||
rm -f "$tmpdepfile"
|
|
||||||
;;
|
|
||||||
|
|
||||||
none)
|
|
||||||
exec "$@"
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
echo "Unknown depmode $depmode" 1>&2
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
# Local Variables:
|
|
||||||
# mode: shell-script
|
|
||||||
# sh-indentation: 2
|
|
||||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
|
||||||
# time-stamp-start: "scriptversion="
|
|
||||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
|
||||||
# time-stamp-end: "$"
|
|
||||||
# End:
|
|
|
@ -1 +0,0 @@
|
||||||
http://iksemel.jabberstudio.org/iksemel.html
|
|
|
@ -1,264 +0,0 @@
|
||||||
# Doxyfile 1.4.6
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Project related configuration options
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
PROJECT_NAME = LibDingaLing
|
|
||||||
PROJECT_NUMBER =
|
|
||||||
OUTPUT_DIRECTORY = .
|
|
||||||
CREATE_SUBDIRS = NO
|
|
||||||
OUTPUT_LANGUAGE = English
|
|
||||||
USE_WINDOWS_ENCODING = YES
|
|
||||||
BRIEF_MEMBER_DESC = YES
|
|
||||||
REPEAT_BRIEF = YES
|
|
||||||
ABBREVIATE_BRIEF = "The $name class" \
|
|
||||||
"The $name widget" \
|
|
||||||
"The $name file" \
|
|
||||||
is \
|
|
||||||
provides \
|
|
||||||
specifies \
|
|
||||||
contains \
|
|
||||||
represents \
|
|
||||||
a \
|
|
||||||
an \
|
|
||||||
the
|
|
||||||
ALWAYS_DETAILED_SEC = NO
|
|
||||||
INLINE_INHERITED_MEMB = NO
|
|
||||||
FULL_PATH_NAMES = NO
|
|
||||||
STRIP_FROM_PATH =
|
|
||||||
STRIP_FROM_INC_PATH =
|
|
||||||
SHORT_NAMES = NO
|
|
||||||
JAVADOC_AUTOBRIEF = NO
|
|
||||||
MULTILINE_CPP_IS_BRIEF = NO
|
|
||||||
DETAILS_AT_TOP = NO
|
|
||||||
INHERIT_DOCS = YES
|
|
||||||
SEPARATE_MEMBER_PAGES = NO
|
|
||||||
TAB_SIZE = 8
|
|
||||||
ALIASES =
|
|
||||||
OPTIMIZE_OUTPUT_FOR_C = YES
|
|
||||||
OPTIMIZE_OUTPUT_JAVA = NO
|
|
||||||
DISTRIBUTE_GROUP_DOC = NO
|
|
||||||
SUBGROUPING = YES
|
|
||||||
IGNORE_PREFIX = ldl_
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Build related configuration options
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
EXTRACT_ALL = NO
|
|
||||||
EXTRACT_PRIVATE = NO
|
|
||||||
EXTRACT_STATIC = NO
|
|
||||||
EXTRACT_LOCAL_CLASSES = YES
|
|
||||||
EXTRACT_LOCAL_METHODS = NO
|
|
||||||
HIDE_UNDOC_MEMBERS = YES
|
|
||||||
HIDE_UNDOC_CLASSES = YES
|
|
||||||
HIDE_FRIEND_COMPOUNDS = NO
|
|
||||||
HIDE_IN_BODY_DOCS = NO
|
|
||||||
INTERNAL_DOCS = NO
|
|
||||||
CASE_SENSE_NAMES = NO
|
|
||||||
HIDE_SCOPE_NAMES = NO
|
|
||||||
SHOW_INCLUDE_FILES = YES
|
|
||||||
INLINE_INFO = YES
|
|
||||||
SORT_MEMBER_DOCS = YES
|
|
||||||
SORT_BRIEF_DOCS = NO
|
|
||||||
SORT_BY_SCOPE_NAME = NO
|
|
||||||
GENERATE_TODOLIST = YES
|
|
||||||
GENERATE_TESTLIST = YES
|
|
||||||
GENERATE_BUGLIST = YES
|
|
||||||
GENERATE_DEPRECATEDLIST= YES
|
|
||||||
ENABLED_SECTIONS =
|
|
||||||
MAX_INITIALIZER_LINES = 30
|
|
||||||
SHOW_USED_FILES = YES
|
|
||||||
SHOW_DIRECTORIES = NO
|
|
||||||
FILE_VERSION_FILTER =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to warning and progress messages
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
QUIET = NO
|
|
||||||
WARNINGS = YES
|
|
||||||
WARN_IF_UNDOCUMENTED = YES
|
|
||||||
WARN_IF_DOC_ERROR = YES
|
|
||||||
WARN_NO_PARAMDOC = NO
|
|
||||||
WARN_FORMAT = "$file:$line: $text"
|
|
||||||
WARN_LOGFILE =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the input files
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
INPUT = ../src
|
|
||||||
FILE_PATTERNS = *.c \
|
|
||||||
*.cc \
|
|
||||||
*.cxx \
|
|
||||||
*.cpp \
|
|
||||||
*.c++ \
|
|
||||||
*.d \
|
|
||||||
*.java \
|
|
||||||
*.ii \
|
|
||||||
*.ixx \
|
|
||||||
*.ipp \
|
|
||||||
*.i++ \
|
|
||||||
*.inl \
|
|
||||||
*.h \
|
|
||||||
*.hh \
|
|
||||||
*.hxx \
|
|
||||||
*.hpp \
|
|
||||||
*.h++ \
|
|
||||||
*.idl \
|
|
||||||
*.odl \
|
|
||||||
*.cs \
|
|
||||||
*.php \
|
|
||||||
*.php3 \
|
|
||||||
*.inc \
|
|
||||||
*.m \
|
|
||||||
*.mm \
|
|
||||||
*.dox \
|
|
||||||
*.py
|
|
||||||
RECURSIVE = NO
|
|
||||||
EXCLUDE =
|
|
||||||
EXCLUDE_SYMLINKS = NO
|
|
||||||
EXCLUDE_PATTERNS =
|
|
||||||
EXAMPLE_PATH =
|
|
||||||
EXAMPLE_PATTERNS =
|
|
||||||
EXAMPLE_RECURSIVE = NO
|
|
||||||
IMAGE_PATH =
|
|
||||||
INPUT_FILTER =
|
|
||||||
FILTER_PATTERNS =
|
|
||||||
FILTER_SOURCE_FILES = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to source browsing
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
SOURCE_BROWSER = NO
|
|
||||||
INLINE_SOURCES = YES
|
|
||||||
STRIP_CODE_COMMENTS = YES
|
|
||||||
REFERENCED_BY_RELATION = YES
|
|
||||||
REFERENCES_RELATION = YES
|
|
||||||
USE_HTAGS = YES
|
|
||||||
VERBATIM_HEADERS = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the alphabetical class index
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
ALPHABETICAL_INDEX = YES
|
|
||||||
COLS_IN_ALPHA_INDEX = 1
|
|
||||||
IGNORE_PREFIX = ldl_
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the HTML output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_HTML = YES
|
|
||||||
HTML_OUTPUT = html
|
|
||||||
HTML_FILE_EXTENSION = .html
|
|
||||||
HTML_HEADER =
|
|
||||||
HTML_FOOTER =
|
|
||||||
HTML_STYLESHEET =
|
|
||||||
HTML_ALIGN_MEMBERS = YES
|
|
||||||
GENERATE_HTMLHELP = NO
|
|
||||||
CHM_FILE = libDingaLing.chm
|
|
||||||
HHC_LOCATION =
|
|
||||||
GENERATE_CHI = YES
|
|
||||||
BINARY_TOC = NO
|
|
||||||
TOC_EXPAND = NO
|
|
||||||
DISABLE_INDEX = NO
|
|
||||||
ENUM_VALUES_PER_LINE = 4
|
|
||||||
GENERATE_TREEVIEW = YES
|
|
||||||
TREEVIEW_WIDTH = 250
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the LaTeX output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_LATEX = NO
|
|
||||||
LATEX_OUTPUT = latex
|
|
||||||
LATEX_CMD_NAME = latex
|
|
||||||
MAKEINDEX_CMD_NAME = makeindex
|
|
||||||
COMPACT_LATEX = NO
|
|
||||||
PAPER_TYPE = a4wide
|
|
||||||
EXTRA_PACKAGES =
|
|
||||||
LATEX_HEADER =
|
|
||||||
PDF_HYPERLINKS = NO
|
|
||||||
USE_PDFLATEX = NO
|
|
||||||
LATEX_BATCHMODE = NO
|
|
||||||
LATEX_HIDE_INDICES = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the RTF output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_RTF = NO
|
|
||||||
RTF_OUTPUT = rtf
|
|
||||||
COMPACT_RTF = NO
|
|
||||||
RTF_HYPERLINKS = NO
|
|
||||||
RTF_STYLESHEET_FILE =
|
|
||||||
RTF_EXTENSIONS_FILE =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the man page output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_MAN = YES
|
|
||||||
MAN_OUTPUT = man
|
|
||||||
MAN_EXTENSION = .3
|
|
||||||
MAN_LINKS = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the XML output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_XML = YES
|
|
||||||
XML_OUTPUT = xml
|
|
||||||
XML_SCHEMA =
|
|
||||||
XML_DTD =
|
|
||||||
XML_PROGRAMLISTING = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options for the AutoGen Definitions output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_AUTOGEN_DEF = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# configuration options related to the Perl module output
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
GENERATE_PERLMOD = YES
|
|
||||||
PERLMOD_LATEX = NO
|
|
||||||
PERLMOD_PRETTY = YES
|
|
||||||
PERLMOD_MAKEVAR_PREFIX =
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration options related to the preprocessor
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
ENABLE_PREPROCESSING = YES
|
|
||||||
MACRO_EXPANSION = YES
|
|
||||||
EXPAND_ONLY_PREDEF = NO
|
|
||||||
SEARCH_INCLUDES = NO
|
|
||||||
INCLUDE_PATH =
|
|
||||||
INCLUDE_FILE_PATTERNS = *.h
|
|
||||||
PREDEFINED = SWITCH_DECLARE(x)=x \
|
|
||||||
APR_DECLARE(x)=x \
|
|
||||||
DoxyDefine(x)=x
|
|
||||||
|
|
||||||
EXPAND_AS_DEFINED = NO
|
|
||||||
SKIP_FUNCTION_MACROS = NO
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration::additions related to external references
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
TAGFILES =
|
|
||||||
GENERATE_TAGFILE =
|
|
||||||
ALLEXTERNALS = NO
|
|
||||||
EXTERNAL_GROUPS = YES
|
|
||||||
PERL_PATH = /usr/bin/perl
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration options related to the dot tool
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
CLASS_DIAGRAMS = YES
|
|
||||||
HIDE_UNDOC_RELATIONS = YES
|
|
||||||
HAVE_DOT = YES
|
|
||||||
CLASS_GRAPH = YES
|
|
||||||
COLLABORATION_GRAPH = YES
|
|
||||||
GROUP_GRAPHS = YES
|
|
||||||
UML_LOOK = YES
|
|
||||||
TEMPLATE_RELATIONS = YES
|
|
||||||
INCLUDE_GRAPH = YES
|
|
||||||
INCLUDED_BY_GRAPH = YES
|
|
||||||
CALL_GRAPH = YES
|
|
||||||
GRAPHICAL_HIERARCHY = YES
|
|
||||||
DIRECTORY_GRAPH = YES
|
|
||||||
DOT_IMAGE_FORMAT = jpg
|
|
||||||
DOT_PATH =
|
|
||||||
DOTFILE_DIRS =
|
|
||||||
MAX_DOT_GRAPH_WIDTH = 1024
|
|
||||||
MAX_DOT_GRAPH_HEIGHT = 1024
|
|
||||||
MAX_DOT_GRAPH_DEPTH = 1000
|
|
||||||
DOT_TRANSPARENT = NO
|
|
||||||
DOT_MULTI_TARGETS = NO
|
|
||||||
GENERATE_LEGEND = YES
|
|
||||||
DOT_CLEANUP = YES
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
# Configuration::additions related to the search engine
|
|
||||||
#---------------------------------------------------------------------------
|
|
||||||
SEARCHENGINE = NO
|
|
|
@ -1,178 +0,0 @@
|
||||||
<?xml version="1.0" encoding="Windows-1252"?>
|
|
||||||
<VisualStudioProject
|
|
||||||
ProjectType="Visual C++"
|
|
||||||
Version="8.00"
|
|
||||||
Name="docs"
|
|
||||||
ProjectGUID="{1A1FF289-4FD6-4285-A422-D31DD67A4723}"
|
|
||||||
RootNamespace="docs"
|
|
||||||
>
|
|
||||||
<Platforms>
|
|
||||||
<Platform
|
|
||||||
Name="Win32"
|
|
||||||
/>
|
|
||||||
</Platforms>
|
|
||||||
<ToolFiles>
|
|
||||||
</ToolFiles>
|
|
||||||
<Configurations>
|
|
||||||
<Configuration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
|
||||||
ConfigurationType="4"
|
|
||||||
BuildLogFile=""
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
CommandLine=""
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
CommandLine=""
|
|
||||||
AdditionalDependencies=""
|
|
||||||
Outputs=""
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
AdditionalIncludeDirectories="..\src\include; ..\libs\include"
|
|
||||||
PreprocessorDefinitions="WIN32"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLibrarianTool"
|
|
||||||
OutputFile=""
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
OutputDocumentFile=""
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
OutputFile=""
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Release|Win32"
|
|
||||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
|
||||||
ConfigurationType="4"
|
|
||||||
BuildLogFile=""
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
CommandLine=""
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
CommandLine=""
|
|
||||||
AdditionalDependencies=""
|
|
||||||
Outputs=""
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
AdditionalIncludeDirectories="..\src\include; ..\libs\include"
|
|
||||||
PreprocessorDefinitions="WIN32"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLibrarianTool"
|
|
||||||
OutputFile=""
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
OutputDocumentFile=""
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
OutputFile=""
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
</Configurations>
|
|
||||||
<References>
|
|
||||||
</References>
|
|
||||||
<Files>
|
|
||||||
<Filter
|
|
||||||
Name="Source Files"
|
|
||||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
|
||||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath=".\Doxygen.conf"
|
|
||||||
>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
CommandLine="doxygen $(InputPath)"
|
|
||||||
AdditionalDependencies="..\src\include\switch.h;..\src\include\switch_apr.h;..\src\include\switch_buffer.h;..\src\include\switch_caller.h;..\src\include\switch_channel.h;..\src\include\switch_config.h;..\src\include\switch_console.h;..\src\include\switch_core.h;..\src\include\switch_event.h;..\src\include\switch_frame.h;..\src\include\switch_loadable_module.h;..\src\include\switch_module_interface.h;..\src\include\switch_mutex.h;..\src\include\switch_platform.h;..\src\include\switch_resample.h;..\src\include\switch_sqlite.h;..\src\include\switch_types.h;..\src\include\switch_utils.h"
|
|
||||||
Outputs="html/index.html"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
CommandLine="doxygen $(InputPath)"
|
|
||||||
AdditionalDependencies="..\src\include\switch.h;..\src\include\switch_apr.h;..\src\include\switch_buffer.h;..\src\include\switch_caller.h;..\src\include\switch_channel.h;..\src\include\switch_config.h;..\src\include\switch_console.h;..\src\include\switch_core.h;..\src\include\switch_event.h;..\src\include\switch_frame.h;..\src\include\switch_loadable_module.h;..\src\include\switch_module_interface.h;..\src\include\switch_mutex.h;..\src\include\switch_platform.h;..\src\include\switch_resample.h;..\src\include\switch_sqlite.h;..\src\include\switch_types.h;..\src\include\switch_utils.h"
|
|
||||||
Outputs="html/index.html"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
</Files>
|
|
||||||
<Globals>
|
|
||||||
</Globals>
|
|
||||||
</VisualStudioProject>
|
|
|
@ -1,323 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
# install - install a program, script, or datafile
|
|
||||||
|
|
||||||
scriptversion=2005-05-14.22
|
|
||||||
|
|
||||||
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
|
||||||
# later released in X11R6 (xc/config/util/install.sh) with the
|
|
||||||
# following copyright and license.
|
|
||||||
#
|
|
||||||
# Copyright (C) 1994 X Consortium
|
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
# of this software and associated documentation files (the "Software"), to
|
|
||||||
# deal in the Software without restriction, including without limitation the
|
|
||||||
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
||||||
# sell copies of the Software, and to permit persons to whom the Software is
|
|
||||||
# furnished to do so, subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in
|
|
||||||
# all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
|
||||||
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
|
|
||||||
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
#
|
|
||||||
# Except as contained in this notice, the name of the X Consortium shall not
|
|
||||||
# be used in advertising or otherwise to promote the sale, use or other deal-
|
|
||||||
# ings in this Software without prior written authorization from the X Consor-
|
|
||||||
# tium.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# FSF changes to this file are in the public domain.
|
|
||||||
#
|
|
||||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
|
||||||
# `make' implicit rules from creating a file called install from it
|
|
||||||
# when there is no Makefile.
|
|
||||||
#
|
|
||||||
# This script is compatible with the BSD install script, but was written
|
|
||||||
# from scratch. It can only install one file at a time, a restriction
|
|
||||||
# shared with many OS's install programs.
|
|
||||||
|
|
||||||
# set DOITPROG to echo to test this script
|
|
||||||
|
|
||||||
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
|
||||||
doit="${DOITPROG-}"
|
|
||||||
|
|
||||||
# put in absolute paths if you don't have them in your path; or use env. vars.
|
|
||||||
|
|
||||||
mvprog="${MVPROG-mv}"
|
|
||||||
cpprog="${CPPROG-cp}"
|
|
||||||
chmodprog="${CHMODPROG-chmod}"
|
|
||||||
chownprog="${CHOWNPROG-chown}"
|
|
||||||
chgrpprog="${CHGRPPROG-chgrp}"
|
|
||||||
stripprog="${STRIPPROG-strip}"
|
|
||||||
rmprog="${RMPROG-rm}"
|
|
||||||
mkdirprog="${MKDIRPROG-mkdir}"
|
|
||||||
|
|
||||||
chmodcmd="$chmodprog 0755"
|
|
||||||
chowncmd=
|
|
||||||
chgrpcmd=
|
|
||||||
stripcmd=
|
|
||||||
rmcmd="$rmprog -f"
|
|
||||||
mvcmd="$mvprog"
|
|
||||||
src=
|
|
||||||
dst=
|
|
||||||
dir_arg=
|
|
||||||
dstarg=
|
|
||||||
no_target_directory=
|
|
||||||
|
|
||||||
usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
|
||||||
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
|
||||||
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
|
||||||
or: $0 [OPTION]... -d DIRECTORIES...
|
|
||||||
|
|
||||||
In the 1st form, copy SRCFILE to DSTFILE.
|
|
||||||
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
|
|
||||||
In the 4th, create DIRECTORIES.
|
|
||||||
|
|
||||||
Options:
|
|
||||||
-c (ignored)
|
|
||||||
-d create directories instead of installing files.
|
|
||||||
-g GROUP $chgrpprog installed files to GROUP.
|
|
||||||
-m MODE $chmodprog installed files to MODE.
|
|
||||||
-o USER $chownprog installed files to USER.
|
|
||||||
-s $stripprog installed files.
|
|
||||||
-t DIRECTORY install into DIRECTORY.
|
|
||||||
-T report an error if DSTFILE is a directory.
|
|
||||||
--help display this help and exit.
|
|
||||||
--version display version info and exit.
|
|
||||||
|
|
||||||
Environment variables override the default commands:
|
|
||||||
CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
|
|
||||||
"
|
|
||||||
|
|
||||||
while test -n "$1"; do
|
|
||||||
case $1 in
|
|
||||||
-c) shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-d) dir_arg=true
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-g) chgrpcmd="$chgrpprog $2"
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
--help) echo "$usage"; exit $?;;
|
|
||||||
|
|
||||||
-m) chmodcmd="$chmodprog $2"
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-o) chowncmd="$chownprog $2"
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-s) stripcmd=$stripprog
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-t) dstarg=$2
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
-T) no_target_directory=true
|
|
||||||
shift
|
|
||||||
continue;;
|
|
||||||
|
|
||||||
--version) echo "$0 $scriptversion"; exit $?;;
|
|
||||||
|
|
||||||
*) # When -d is used, all remaining arguments are directories to create.
|
|
||||||
# When -t is used, the destination is already specified.
|
|
||||||
test -n "$dir_arg$dstarg" && break
|
|
||||||
# Otherwise, the last argument is the destination. Remove it from $@.
|
|
||||||
for arg
|
|
||||||
do
|
|
||||||
if test -n "$dstarg"; then
|
|
||||||
# $@ is not empty: it contains at least $arg.
|
|
||||||
set fnord "$@" "$dstarg"
|
|
||||||
shift # fnord
|
|
||||||
fi
|
|
||||||
shift # arg
|
|
||||||
dstarg=$arg
|
|
||||||
done
|
|
||||||
break;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
if test -z "$1"; then
|
|
||||||
if test -z "$dir_arg"; then
|
|
||||||
echo "$0: no input file specified." >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
# It's OK to call `install-sh -d' without argument.
|
|
||||||
# This can happen when creating conditional directories.
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
for src
|
|
||||||
do
|
|
||||||
# Protect names starting with `-'.
|
|
||||||
case $src in
|
|
||||||
-*) src=./$src ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if test -n "$dir_arg"; then
|
|
||||||
dst=$src
|
|
||||||
src=
|
|
||||||
|
|
||||||
if test -d "$dst"; then
|
|
||||||
mkdircmd=:
|
|
||||||
chmodcmd=
|
|
||||||
else
|
|
||||||
mkdircmd=$mkdirprog
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
|
||||||
# might cause directories to be created, which would be especially bad
|
|
||||||
# if $src (and thus $dsttmp) contains '*'.
|
|
||||||
if test ! -f "$src" && test ! -d "$src"; then
|
|
||||||
echo "$0: $src does not exist." >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test -z "$dstarg"; then
|
|
||||||
echo "$0: no destination specified." >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
dst=$dstarg
|
|
||||||
# Protect names starting with `-'.
|
|
||||||
case $dst in
|
|
||||||
-*) dst=./$dst ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# If destination is a directory, append the input filename; won't work
|
|
||||||
# if double slashes aren't ignored.
|
|
||||||
if test -d "$dst"; then
|
|
||||||
if test -n "$no_target_directory"; then
|
|
||||||
echo "$0: $dstarg: Is a directory" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
dst=$dst/`basename "$src"`
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This sed command emulates the dirname command.
|
|
||||||
dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
|
|
||||||
|
|
||||||
# Make sure that the destination directory exists.
|
|
||||||
|
|
||||||
# Skip lots of stat calls in the usual case.
|
|
||||||
if test ! -d "$dstdir"; then
|
|
||||||
defaultIFS='
|
|
||||||
'
|
|
||||||
IFS="${IFS-$defaultIFS}"
|
|
||||||
|
|
||||||
oIFS=$IFS
|
|
||||||
# Some sh's can't handle IFS=/ for some reason.
|
|
||||||
IFS='%'
|
|
||||||
set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
|
|
||||||
shift
|
|
||||||
IFS=$oIFS
|
|
||||||
|
|
||||||
pathcomp=
|
|
||||||
|
|
||||||
while test $# -ne 0 ; do
|
|
||||||
pathcomp=$pathcomp$1
|
|
||||||
shift
|
|
||||||
if test ! -d "$pathcomp"; then
|
|
||||||
$mkdirprog "$pathcomp"
|
|
||||||
# mkdir can fail with a `File exist' error in case several
|
|
||||||
# install-sh are creating the directory concurrently. This
|
|
||||||
# is OK.
|
|
||||||
test -d "$pathcomp" || exit
|
|
||||||
fi
|
|
||||||
pathcomp=$pathcomp/
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test -n "$dir_arg"; then
|
|
||||||
$doit $mkdircmd "$dst" \
|
|
||||||
&& { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
|
|
||||||
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
|
|
||||||
&& { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
|
|
||||||
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
|
|
||||||
|
|
||||||
else
|
|
||||||
dstfile=`basename "$dst"`
|
|
||||||
|
|
||||||
# Make a couple of temp file names in the proper directory.
|
|
||||||
dsttmp=$dstdir/_inst.$$_
|
|
||||||
rmtmp=$dstdir/_rm.$$_
|
|
||||||
|
|
||||||
# Trap to clean up those temp files at exit.
|
|
||||||
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
|
|
||||||
trap '(exit $?); exit' 1 2 13 15
|
|
||||||
|
|
||||||
# Copy the file name to the temp name.
|
|
||||||
$doit $cpprog "$src" "$dsttmp" &&
|
|
||||||
|
|
||||||
# and set any options; do chmod last to preserve setuid bits.
|
|
||||||
#
|
|
||||||
# If any of these fail, we abort the whole thing. If we want to
|
|
||||||
# ignore errors from any of these, just make sure not to ignore
|
|
||||||
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
|
||||||
#
|
|
||||||
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
|
|
||||||
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
|
|
||||||
&& { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
|
|
||||||
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
|
|
||||||
|
|
||||||
# Now rename the file to the real destination.
|
|
||||||
{ $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
|
|
||||||
|| {
|
|
||||||
# The rename failed, perhaps because mv can't rename something else
|
|
||||||
# to itself, or perhaps because mv is so ancient that it does not
|
|
||||||
# support -f.
|
|
||||||
|
|
||||||
# Now remove or move aside any old file at destination location.
|
|
||||||
# We try this two ways since rm can't unlink itself on some
|
|
||||||
# systems and the destination file might be busy for other
|
|
||||||
# reasons. In this case, the final cleanup might fail but the new
|
|
||||||
# file should still install successfully.
|
|
||||||
{
|
|
||||||
if test -f "$dstdir/$dstfile"; then
|
|
||||||
$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
|
|
||||||
|| $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
|
|
||||||
|| {
|
|
||||||
echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
|
|
||||||
(exit 1); exit 1
|
|
||||||
}
|
|
||||||
else
|
|
||||||
:
|
|
||||||
fi
|
|
||||||
} &&
|
|
||||||
|
|
||||||
# Now rename the file to the real destination.
|
|
||||||
$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
fi || { (exit 1); exit 1; }
|
|
||||||
done
|
|
||||||
|
|
||||||
# The final little trick to "correctly" pass the exit status to the exit trap.
|
|
||||||
{
|
|
||||||
(exit 0); exit 0
|
|
||||||
}
|
|
||||||
|
|
||||||
# Local variables:
|
|
||||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
|
||||||
# time-stamp-start: "scriptversion="
|
|
||||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
|
||||||
# time-stamp-end: "$"
|
|
||||||
# End:
|
|
|
@ -1,621 +0,0 @@
|
||||||
<?xml version="1.0" encoding="Windows-1252"?>
|
|
||||||
<VisualStudioProject
|
|
||||||
ProjectType="Visual C++"
|
|
||||||
Version="9.00"
|
|
||||||
Name="libdingaling"
|
|
||||||
ProjectGUID="{1906D736-08BD-4EE1-924F-B536249B9A54}"
|
|
||||||
RootNamespace="libdingaling"
|
|
||||||
Keyword="Win32Proj"
|
|
||||||
TargetFrameworkVersion="131072"
|
|
||||||
>
|
|
||||||
<Platforms>
|
|
||||||
<Platform
|
|
||||||
Name="Win32"
|
|
||||||
/>
|
|
||||||
<Platform
|
|
||||||
Name="x64"
|
|
||||||
/>
|
|
||||||
</Platforms>
|
|
||||||
<ToolFiles>
|
|
||||||
</ToolFiles>
|
|
||||||
<Configurations>
|
|
||||||
<Configuration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
OutputDirectory="$(ConfigurationName)"
|
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
|
||||||
ConfigurationType="4"
|
|
||||||
CharacterSet="1"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
AdditionalIncludeDirectories=".;.\src;..\iksemel\include;..\include;..\apr\include;"..\iksemel-1.2\include""
|
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"
|
|
||||||
MinimalRebuild="true"
|
|
||||||
BasicRuntimeChecks="3"
|
|
||||||
RuntimeLibrary="3"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="4"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
DisableSpecificWarnings="4100;4706"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLibrarianTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Release|Win32"
|
|
||||||
OutputDirectory="$(ConfigurationName)"
|
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
|
||||||
ConfigurationType="4"
|
|
||||||
CharacterSet="1"
|
|
||||||
WholeProgramOptimization="1"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
AdditionalIncludeDirectories=".;.\src;..\iksemel\include;..\include;..\apr\include;"..\iksemel-1.2\include""
|
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"
|
|
||||||
RuntimeLibrary="2"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="4"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
DisableSpecificWarnings="4100"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLibrarianTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Debug DLL|Win32"
|
|
||||||
OutputDirectory="$(SolutionDir)Debug"
|
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
|
||||||
ConfigurationType="2"
|
|
||||||
CharacterSet="1"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
AdditionalIncludeDirectories=".;.\src;..\iksemel\include;..\include;..\apr\include;"..\iksemel-1.2\include""
|
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;APR_DECLARE_STATIC;APU_DECLARE_STATIC"
|
|
||||||
MinimalRebuild="true"
|
|
||||||
BasicRuntimeChecks="3"
|
|
||||||
RuntimeLibrary="3"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="4"
|
|
||||||
DebugInformationFormat="4"
|
|
||||||
DisableSpecificWarnings="4100"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="libapr-1.lib libaprutil-1.lib iksemel.lib Ws2_32.lib"
|
|
||||||
AdditionalLibraryDirectories="..\apr\Debug;..\apr-util\Debug;..\iksemel\Debug"
|
|
||||||
ModuleDefinitionFile=".\src\dingaling.def"
|
|
||||||
GenerateDebugInformation="true"
|
|
||||||
OptimizeReferences="1"
|
|
||||||
EnableCOMDATFolding="1"
|
|
||||||
OptimizeForWindows98="1"
|
|
||||||
RandomizedBaseAddress="1"
|
|
||||||
DataExecutionPrevention="0"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Release DLL|Win32"
|
|
||||||
OutputDirectory="$(SolutionDir)Release"
|
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
|
||||||
ConfigurationType="2"
|
|
||||||
CharacterSet="1"
|
|
||||||
WholeProgramOptimization="1"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
AdditionalIncludeDirectories=".;.\src;..\iksemel\include;..\include;..\apr\include;"..\iksemel-1.2\include""
|
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;APR_DECLARE_STATIC;APU_DECLARE_STATIC"
|
|
||||||
RuntimeLibrary="2"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="4"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
DisableSpecificWarnings="4100"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="libapr-1.lib libaprutil-1.lib iksemel.lib Ws2_32.lib"
|
|
||||||
AdditionalLibraryDirectories="..\apr\Release;..\apr-util\Release;..\iksemel\Release"
|
|
||||||
ModuleDefinitionFile=".\src\dingaling.def"
|
|
||||||
RandomizedBaseAddress="1"
|
|
||||||
DataExecutionPrevention="0"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Debug|x64"
|
|
||||||
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
|
|
||||||
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
|
|
||||||
ConfigurationType="4"
|
|
||||||
CharacterSet="1"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
TargetEnvironment="3"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
AdditionalIncludeDirectories=".;.\src;..\iksemel\include;..\include;..\apr\include;"..\iksemel-1.2\include""
|
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"
|
|
||||||
MinimalRebuild="true"
|
|
||||||
BasicRuntimeChecks="3"
|
|
||||||
RuntimeLibrary="3"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="4"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
DisableSpecificWarnings="4100;4706"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLibrarianTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Release|x64"
|
|
||||||
OutputDirectory="$(PlatformName)\$(ConfigurationName)"
|
|
||||||
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
|
|
||||||
ConfigurationType="4"
|
|
||||||
CharacterSet="1"
|
|
||||||
WholeProgramOptimization="1"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
TargetEnvironment="3"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
AdditionalIncludeDirectories=".;.\src;..\iksemel\include;..\include;..\apr\include;"..\iksemel-1.2\include""
|
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"
|
|
||||||
RuntimeLibrary="2"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="4"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
DisableSpecificWarnings="4100"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLibrarianTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Debug DLL|x64"
|
|
||||||
OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
|
|
||||||
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
|
|
||||||
ConfigurationType="2"
|
|
||||||
CharacterSet="1"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
TargetEnvironment="3"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
AdditionalIncludeDirectories=".;.\src;..\iksemel\include;..\include;..\apr\include;"..\iksemel-1.2\include""
|
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;APR_DECLARE_STATIC;APU_DECLARE_STATIC"
|
|
||||||
MinimalRebuild="true"
|
|
||||||
BasicRuntimeChecks="3"
|
|
||||||
RuntimeLibrary="3"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="4"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
DisableSpecificWarnings="4100"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="libapr-1.lib libaprutil-1.lib iksemel.lib Ws2_32.lib"
|
|
||||||
AdditionalLibraryDirectories="..\apr\Debug;..\apr-util\Debug;..\iksemel\Debug"
|
|
||||||
ModuleDefinitionFile=".\src\dingaling.def"
|
|
||||||
GenerateDebugInformation="true"
|
|
||||||
OptimizeReferences="1"
|
|
||||||
EnableCOMDATFolding="1"
|
|
||||||
OptimizeForWindows98="1"
|
|
||||||
RandomizedBaseAddress="1"
|
|
||||||
DataExecutionPrevention="0"
|
|
||||||
TargetMachine="17"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Release DLL|x64"
|
|
||||||
OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
|
|
||||||
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
|
|
||||||
ConfigurationType="2"
|
|
||||||
CharacterSet="1"
|
|
||||||
WholeProgramOptimization="1"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
TargetEnvironment="3"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
AdditionalIncludeDirectories=".;.\src;..\iksemel\include;..\include;..\apr\include;"..\iksemel-1.2\include""
|
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;APR_DECLARE_STATIC;APU_DECLARE_STATIC"
|
|
||||||
RuntimeLibrary="2"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="4"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
DisableSpecificWarnings="4100"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="libapr-1.lib libaprutil-1.lib iksemel.lib Ws2_32.lib"
|
|
||||||
AdditionalLibraryDirectories="..\apr\Release;..\apr-util\Release;..\iksemel\Release"
|
|
||||||
ModuleDefinitionFile=".\src\dingaling.def"
|
|
||||||
RandomizedBaseAddress="1"
|
|
||||||
DataExecutionPrevention="0"
|
|
||||||
TargetMachine="17"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
</Configurations>
|
|
||||||
<References>
|
|
||||||
</References>
|
|
||||||
<Files>
|
|
||||||
<Filter
|
|
||||||
Name="Source Files"
|
|
||||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
|
||||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\libdingaling.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\sha1.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
|
||||||
Name="Header Files"
|
|
||||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
|
||||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\ldl_compat.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\libdingaling.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
|
||||||
Name="Resource Files"
|
|
||||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
|
||||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
|
||||||
>
|
|
||||||
</Filter>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\dingaling.def"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Files>
|
|
||||||
<Globals>
|
|
||||||
</Globals>
|
|
||||||
</VisualStudioProject>
|
|
|
@ -1,38 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<Filter Include="Source Files">
|
|
||||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
|
||||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Header Files">
|
|
||||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
|
||||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Resource Files">
|
|
||||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
|
||||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
|
|
||||||
</Filter>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="src\libdingaling.c">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="src\sha1.c">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="src\ldl_compat.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="src\libdingaling.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="src\dingaling.def">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
|
@ -1,303 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
|
||||||
<ProjectConfiguration Include="Debug DLL|Win32">
|
|
||||||
<Configuration>Debug DLL</Configuration>
|
|
||||||
<Platform>Win32</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Debug DLL|x64">
|
|
||||||
<Configuration>Debug DLL</Configuration>
|
|
||||||
<Platform>x64</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Debug|Win32">
|
|
||||||
<Configuration>Debug</Configuration>
|
|
||||||
<Platform>Win32</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Debug|x64">
|
|
||||||
<Configuration>Debug</Configuration>
|
|
||||||
<Platform>x64</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Release DLL|Win32">
|
|
||||||
<Configuration>Release DLL</Configuration>
|
|
||||||
<Platform>Win32</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Release DLL|x64">
|
|
||||||
<Configuration>Release DLL</Configuration>
|
|
||||||
<Platform>x64</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Release|Win32">
|
|
||||||
<Configuration>Release</Configuration>
|
|
||||||
<Platform>Win32</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Release|x64">
|
|
||||||
<Configuration>Release</Configuration>
|
|
||||||
<Platform>x64</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
</ItemGroup>
|
|
||||||
<PropertyGroup Label="Globals">
|
|
||||||
<ProjectName>libdingaling</ProjectName>
|
|
||||||
<ProjectGuid>{1906D736-08BD-4EE1-924F-B536249B9A54}</ProjectGuid>
|
|
||||||
<RootNamespace>libdingaling</RootNamespace>
|
|
||||||
<Keyword>Win32Proj</Keyword>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
||||||
<ImportGroup Label="ExtensionSettings">
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'" Label="PropertySheets">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'" Label="PropertySheets">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
<Import Project="..\..\w32\extlib.props" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
<Import Project="..\..\w32\extlib.props" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'" Label="PropertySheets">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'" Label="PropertySheets">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
<Import Project="..\..\w32\extlib.props" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
<Import Project="..\..\w32\extlib.props" />
|
|
||||||
</ImportGroup>
|
|
||||||
<PropertyGroup Label="UserMacros" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
|
||||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'">$(SolutionDir)Debug\</OutDir>
|
|
||||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'">$(Configuration)\</IntDir>
|
|
||||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'">$(SolutionDir)Release\</OutDir>
|
|
||||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'">$(Configuration)\</IntDir>
|
|
||||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
|
||||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'">$(Platform)\$(Configuration)\</IntDir>
|
|
||||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
|
|
||||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'">$(Platform)\$(Configuration)\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<ClCompile>
|
|
||||||
<Optimization>Disabled</Optimization>
|
|
||||||
<AdditionalIncludeDirectories>.;.\src;..\iksemel\include;..\include;..\apr\include;..\iksemel-1.2\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<MinimalRebuild>true</MinimalRebuild>
|
|
||||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
|
||||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
|
||||||
<WarningLevel>Level4</WarningLevel>
|
|
||||||
<DisableSpecificWarnings>4718;4456;4457;4701;4702;4703;4100;4706;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<ClCompile>
|
|
||||||
<AdditionalIncludeDirectories>.;.\src;..\iksemel\include;..\include;..\apr\include;..\iksemel-1.2\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
|
||||||
<WarningLevel>Level4</WarningLevel>
|
|
||||||
<DisableSpecificWarnings>4718;4456;4457;4701;4702;4703;4100;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'">
|
|
||||||
<ClCompile>
|
|
||||||
<Optimization>Disabled</Optimization>
|
|
||||||
<AdditionalIncludeDirectories>.;.\src;..\iksemel\include;..\include;..\apr\include;..\iksemel-1.2\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;APR_DECLARE_STATIC;APU_DECLARE_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<MinimalRebuild>true</MinimalRebuild>
|
|
||||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
|
||||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
|
||||||
<PrecompiledHeader>
|
|
||||||
</PrecompiledHeader>
|
|
||||||
<WarningLevel>Level4</WarningLevel>
|
|
||||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
|
||||||
<DisableSpecificWarnings>4718;4456;4457;4701;4702;4703;4100;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<AdditionalDependencies>libapr-1.lib;libaprutil-1.lib;iksemel.lib;Ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
||||||
<AdditionalLibraryDirectories>..\apr\Debug;..\apr-util\Debug;..\iksemel\Debug;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
||||||
<ModuleDefinitionFile>.\src\dingaling.def</ModuleDefinitionFile>
|
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
||||||
<OptimizeReferences>false</OptimizeReferences>
|
|
||||||
<EnableCOMDATFolding>false</EnableCOMDATFolding>
|
|
||||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
|
||||||
<DataExecutionPrevention>
|
|
||||||
</DataExecutionPrevention>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'">
|
|
||||||
<ClCompile>
|
|
||||||
<AdditionalIncludeDirectories>.;.\src;..\iksemel\include;..\include;..\apr\include;..\iksemel-1.2\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;APR_DECLARE_STATIC;APU_DECLARE_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
|
||||||
<PrecompiledHeader>
|
|
||||||
</PrecompiledHeader>
|
|
||||||
<WarningLevel>Level4</WarningLevel>
|
|
||||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
|
||||||
<DisableSpecificWarnings>4718;4456;4457;4701;4702;4703;4100;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<AdditionalDependencies>libapr-1.lib;libaprutil-1.lib;iksemel.lib;Ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
||||||
<AdditionalLibraryDirectories>..\apr\Release;..\apr-util\Release;..\iksemel\Release;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
||||||
<ModuleDefinitionFile>.\src\dingaling.def</ModuleDefinitionFile>
|
|
||||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
|
||||||
<DataExecutionPrevention>
|
|
||||||
</DataExecutionPrevention>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
||||||
<Midl>
|
|
||||||
<TargetEnvironment>X64</TargetEnvironment>
|
|
||||||
</Midl>
|
|
||||||
<ClCompile>
|
|
||||||
<Optimization>Disabled</Optimization>
|
|
||||||
<AdditionalIncludeDirectories>.;.\src;..\iksemel\include;..\include;..\apr\include;..\iksemel-1.2\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<MinimalRebuild>true</MinimalRebuild>
|
|
||||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
|
||||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
|
||||||
<WarningLevel>Level4</WarningLevel>
|
|
||||||
<DisableSpecificWarnings>4718;4456;4457;4701;4702;4703;4100;4706;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
||||||
<Midl>
|
|
||||||
<TargetEnvironment>X64</TargetEnvironment>
|
|
||||||
</Midl>
|
|
||||||
<ClCompile>
|
|
||||||
<AdditionalIncludeDirectories>.;.\src;..\iksemel\include;..\include;..\apr\include;..\iksemel-1.2\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
|
||||||
<WarningLevel>Level4</WarningLevel>
|
|
||||||
<DisableSpecificWarnings>4718;4456;4457;4701;4702;4703;4100;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'">
|
|
||||||
<Midl>
|
|
||||||
<TargetEnvironment>X64</TargetEnvironment>
|
|
||||||
</Midl>
|
|
||||||
<ClCompile>
|
|
||||||
<Optimization>Disabled</Optimization>
|
|
||||||
<AdditionalIncludeDirectories>.;.\src;..\iksemel\include;..\include;..\apr\include;..\iksemel-1.2\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;APR_DECLARE_STATIC;APU_DECLARE_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<MinimalRebuild>true</MinimalRebuild>
|
|
||||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
|
||||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
|
||||||
<PrecompiledHeader>
|
|
||||||
</PrecompiledHeader>
|
|
||||||
<WarningLevel>Level4</WarningLevel>
|
|
||||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
|
||||||
<DisableSpecificWarnings>4718;4456;4457;4701;4702;4703;4100;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<AdditionalDependencies>libapr-1.lib;libaprutil-1.lib;iksemel.lib;Ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
||||||
<AdditionalLibraryDirectories>..\apr\Debug;..\apr-util\Debug;..\iksemel\Debug;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
||||||
<ModuleDefinitionFile>.\src\dingaling.def</ModuleDefinitionFile>
|
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
||||||
<OptimizeReferences>false</OptimizeReferences>
|
|
||||||
<EnableCOMDATFolding>false</EnableCOMDATFolding>
|
|
||||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
|
||||||
<DataExecutionPrevention>
|
|
||||||
</DataExecutionPrevention>
|
|
||||||
<TargetMachine>MachineX64</TargetMachine>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'">
|
|
||||||
<Midl>
|
|
||||||
<TargetEnvironment>X64</TargetEnvironment>
|
|
||||||
</Midl>
|
|
||||||
<ClCompile>
|
|
||||||
<AdditionalIncludeDirectories>.;.\src;..\iksemel\include;..\include;..\apr\include;..\iksemel-1.2\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;APR_DECLARE_STATIC;APU_DECLARE_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
|
||||||
<PrecompiledHeader>
|
|
||||||
</PrecompiledHeader>
|
|
||||||
<WarningLevel>Level4</WarningLevel>
|
|
||||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
|
||||||
<DisableSpecificWarnings>4718;4456;4457;4701;4702;4703;4100;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<AdditionalDependencies>libapr-1.lib;libaprutil-1.lib;iksemel.lib;Ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
||||||
<AdditionalLibraryDirectories>..\apr\Release;..\apr-util\Release;..\iksemel\Release;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
||||||
<ModuleDefinitionFile>.\src\dingaling.def</ModuleDefinitionFile>
|
|
||||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
|
||||||
<DataExecutionPrevention>
|
|
||||||
</DataExecutionPrevention>
|
|
||||||
<TargetMachine>MachineX64</TargetMachine>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="src\libdingaling.c" />
|
|
||||||
<ClCompile Include="src\sha1.c" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="src\ldl_compat.h" />
|
|
||||||
<ClInclude Include="src\libdingaling.h" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="src\dingaling.def" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\win32\apr-util\libaprutil.2017.vcxproj">
|
|
||||||
<Project>{f057da7f-79e5-4b00-845c-ef446ef055e3}</Project>
|
|
||||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\win32\iksemel\iksemel.2017.vcxproj">
|
|
||||||
<Project>{e727e8f6-935d-46fe-8b0e-37834748a0e3}</Project>
|
|
||||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
||||||
<ImportGroup Label="ExtensionTargets">
|
|
||||||
</ImportGroup>
|
|
||||||
</Project>
|
|
|
@ -1,343 +0,0 @@
|
||||||
<?xml version="1.0" encoding="Windows-1252"?>
|
|
||||||
<VisualStudioProject
|
|
||||||
ProjectType="Visual C++"
|
|
||||||
Version="8.00"
|
|
||||||
Name="libdingaling"
|
|
||||||
ProjectGUID="{1906D736-08BD-4EE1-924F-B536249B9A54}"
|
|
||||||
RootNamespace="libdingaling"
|
|
||||||
Keyword="Win32Proj"
|
|
||||||
>
|
|
||||||
<Platforms>
|
|
||||||
<Platform
|
|
||||||
Name="Win32"
|
|
||||||
/>
|
|
||||||
</Platforms>
|
|
||||||
<ToolFiles>
|
|
||||||
</ToolFiles>
|
|
||||||
<Configurations>
|
|
||||||
<Configuration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
OutputDirectory="$(ConfigurationName)"
|
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
|
||||||
ConfigurationType="4"
|
|
||||||
CharacterSet="1"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
AdditionalIncludeDirectories=".;.\src;..\iksemel\include;..\include;..\apr\include;"..\iksemel-1.2\include""
|
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"
|
|
||||||
MinimalRebuild="true"
|
|
||||||
BasicRuntimeChecks="3"
|
|
||||||
RuntimeLibrary="3"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="4"
|
|
||||||
Detect64BitPortabilityProblems="true"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
DisableSpecificWarnings="4100;4706"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLibrarianTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Release|Win32"
|
|
||||||
OutputDirectory="$(ConfigurationName)"
|
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
|
||||||
ConfigurationType="4"
|
|
||||||
CharacterSet="1"
|
|
||||||
WholeProgramOptimization="1"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
AdditionalIncludeDirectories=".;.\src;..\iksemel\include;..\include;..\apr\include;"..\iksemel-1.2\include""
|
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"
|
|
||||||
RuntimeLibrary="2"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="4"
|
|
||||||
Detect64BitPortabilityProblems="true"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
DisableSpecificWarnings="4100"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLibrarianTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Debug DLL|Win32"
|
|
||||||
OutputDirectory="$(SolutionDir)Debug"
|
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
|
||||||
ConfigurationType="2"
|
|
||||||
CharacterSet="1"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
AdditionalIncludeDirectories=".;.\src;..\iksemel\include;..\include;..\apr\include;"..\iksemel-1.2\include""
|
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;APR_DECLARE_STATIC;APU_DECLARE_STATIC"
|
|
||||||
MinimalRebuild="true"
|
|
||||||
BasicRuntimeChecks="3"
|
|
||||||
RuntimeLibrary="3"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="4"
|
|
||||||
Detect64BitPortabilityProblems="true"
|
|
||||||
DebugInformationFormat="4"
|
|
||||||
DisableSpecificWarnings="4100"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="libapr-1.lib libaprutil-1.lib iksemel.lib Ws2_32.lib"
|
|
||||||
AdditionalLibraryDirectories="..\apr\Debug;..\apr-util\Debug;..\iksemel\Debug"
|
|
||||||
ModuleDefinitionFile=".\src\dingaling.def"
|
|
||||||
GenerateDebugInformation="true"
|
|
||||||
OptimizeReferences="1"
|
|
||||||
EnableCOMDATFolding="1"
|
|
||||||
OptimizeForWindows98="1"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebDeploymentTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Release DLL|Win32"
|
|
||||||
OutputDirectory="$(SolutionDir)Release"
|
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
|
||||||
ConfigurationType="2"
|
|
||||||
CharacterSet="1"
|
|
||||||
WholeProgramOptimization="1"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
AdditionalIncludeDirectories=".;.\src;..\iksemel\include;..\include;..\apr\include;"..\iksemel-1.2\include""
|
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;APR_DECLARE_STATIC;APU_DECLARE_STATIC"
|
|
||||||
RuntimeLibrary="2"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="4"
|
|
||||||
Detect64BitPortabilityProblems="true"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
DisableSpecificWarnings="4100"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="libapr-1.lib libaprutil-1.lib iksemel.lib Ws2_32.lib"
|
|
||||||
AdditionalLibraryDirectories="..\apr\Release;..\apr-util\Release;..\iksemel\Release"
|
|
||||||
ModuleDefinitionFile=".\src\dingaling.def"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebDeploymentTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
</Configurations>
|
|
||||||
<References>
|
|
||||||
</References>
|
|
||||||
<Files>
|
|
||||||
<Filter
|
|
||||||
Name="Source Files"
|
|
||||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
|
||||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\libdingaling.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\sha1.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
|
||||||
Name="Header Files"
|
|
||||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
|
||||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\ldl_compat.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\libdingaling.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
|
||||||
Name="Resource Files"
|
|
||||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
|
||||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
|
||||||
>
|
|
||||||
</Filter>
|
|
||||||
<File
|
|
||||||
RelativePath=".\src\dingaling.def"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Files>
|
|
||||||
<Globals>
|
|
||||||
</Globals>
|
|
||||||
</VisualStudioProject>
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,360 +0,0 @@
|
||||||
#! /bin/sh
|
|
||||||
# Common stub for a few missing GNU programs while installing.
|
|
||||||
|
|
||||||
scriptversion=2005-06-08.21
|
|
||||||
|
|
||||||
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
|
|
||||||
# Free Software Foundation, Inc.
|
|
||||||
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
|
||||||
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2, or (at your option)
|
|
||||||
# any later version.
|
|
||||||
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
||||||
# 02110-1301, USA.
|
|
||||||
|
|
||||||
# As a special exception to the GNU General Public License, if you
|
|
||||||
# distribute this file as part of a program that contains a
|
|
||||||
# configuration script generated by Autoconf, you may include it under
|
|
||||||
# the same distribution terms that you use for the rest of that program.
|
|
||||||
|
|
||||||
if test $# -eq 0; then
|
|
||||||
echo 1>&2 "Try \`$0 --help' for more information"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
run=:
|
|
||||||
|
|
||||||
# In the cases where this matters, `missing' is being run in the
|
|
||||||
# srcdir already.
|
|
||||||
if test -f configure.ac; then
|
|
||||||
configure_ac=configure.ac
|
|
||||||
else
|
|
||||||
configure_ac=configure.in
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg="missing on your system"
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
--run)
|
|
||||||
# Try to run requested program, and just exit if it succeeds.
|
|
||||||
run=
|
|
||||||
shift
|
|
||||||
"$@" && exit 0
|
|
||||||
# Exit code 63 means version mismatch. This often happens
|
|
||||||
# when the user try to use an ancient version of a tool on
|
|
||||||
# a file that requires a minimum version. In this case we
|
|
||||||
# we should proceed has if the program had been absent, or
|
|
||||||
# if --run hadn't been passed.
|
|
||||||
if test $? = 63; then
|
|
||||||
run=:
|
|
||||||
msg="probably too old"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
-h|--h|--he|--hel|--help)
|
|
||||||
echo "\
|
|
||||||
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
|
||||||
|
|
||||||
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
|
|
||||||
error status if there is no known handling for PROGRAM.
|
|
||||||
|
|
||||||
Options:
|
|
||||||
-h, --help display this help and exit
|
|
||||||
-v, --version output version information and exit
|
|
||||||
--run try to run the given command, and emulate it if it fails
|
|
||||||
|
|
||||||
Supported PROGRAM values:
|
|
||||||
aclocal touch file \`aclocal.m4'
|
|
||||||
autoconf touch file \`configure'
|
|
||||||
autoheader touch file \`config.h.in'
|
|
||||||
automake touch all \`Makefile.in' files
|
|
||||||
bison create \`y.tab.[ch]', if possible, from existing .[ch]
|
|
||||||
flex create \`lex.yy.c', if possible, from existing .c
|
|
||||||
help2man touch the output file
|
|
||||||
lex create \`lex.yy.c', if possible, from existing .c
|
|
||||||
makeinfo touch the output file
|
|
||||||
tar try tar, gnutar, gtar, then tar without non-portable flags
|
|
||||||
yacc create \`y.tab.[ch]', if possible, from existing .[ch]
|
|
||||||
|
|
||||||
Send bug reports to <bug-automake@gnu.org>."
|
|
||||||
exit $?
|
|
||||||
;;
|
|
||||||
|
|
||||||
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
|
||||||
echo "missing $scriptversion (GNU Automake)"
|
|
||||||
exit $?
|
|
||||||
;;
|
|
||||||
|
|
||||||
-*)
|
|
||||||
echo 1>&2 "$0: Unknown \`$1' option"
|
|
||||||
echo 1>&2 "Try \`$0 --help' for more information"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Now exit if we have it, but it failed. Also exit now if we
|
|
||||||
# don't have it and --version was passed (most likely to detect
|
|
||||||
# the program).
|
|
||||||
case "$1" in
|
|
||||||
lex|yacc)
|
|
||||||
# Not GNU programs, they don't have --version.
|
|
||||||
;;
|
|
||||||
|
|
||||||
tar)
|
|
||||||
if test -n "$run"; then
|
|
||||||
echo 1>&2 "ERROR: \`tar' requires --run"
|
|
||||||
exit 1
|
|
||||||
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
|
||||||
# We have it, but it failed.
|
|
||||||
exit 1
|
|
||||||
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
|
||||||
# Could not run --version or --help. This is probably someone
|
|
||||||
# running `$TOOL --version' or `$TOOL --help' to check whether
|
|
||||||
# $TOOL exists and not knowing $TOOL uses missing.
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# If it does not exist, or fails to run (possibly an outdated version),
|
|
||||||
# try to emulate it.
|
|
||||||
case "$1" in
|
|
||||||
aclocal*)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is $msg. You should only need it if
|
|
||||||
you modified \`acinclude.m4' or \`${configure_ac}'. You might want
|
|
||||||
to install the \`Automake' and \`Perl' packages. Grab them from
|
|
||||||
any GNU archive site."
|
|
||||||
touch aclocal.m4
|
|
||||||
;;
|
|
||||||
|
|
||||||
autoconf)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is $msg. You should only need it if
|
|
||||||
you modified \`${configure_ac}'. You might want to install the
|
|
||||||
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
|
|
||||||
archive site."
|
|
||||||
touch configure
|
|
||||||
;;
|
|
||||||
|
|
||||||
autoheader)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is $msg. You should only need it if
|
|
||||||
you modified \`acconfig.h' or \`${configure_ac}'. You might want
|
|
||||||
to install the \`Autoconf' and \`GNU m4' packages. Grab them
|
|
||||||
from any GNU archive site."
|
|
||||||
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
|
|
||||||
test -z "$files" && files="config.h"
|
|
||||||
touch_files=
|
|
||||||
for f in $files; do
|
|
||||||
case "$f" in
|
|
||||||
*:*) touch_files="$touch_files "`echo "$f" |
|
|
||||||
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
|
|
||||||
*) touch_files="$touch_files $f.in";;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
touch $touch_files
|
|
||||||
;;
|
|
||||||
|
|
||||||
automake*)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is $msg. You should only need it if
|
|
||||||
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
|
|
||||||
You might want to install the \`Automake' and \`Perl' packages.
|
|
||||||
Grab them from any GNU archive site."
|
|
||||||
find . -type f -name Makefile.am -print |
|
|
||||||
sed 's/\.am$/.in/' |
|
|
||||||
while read f; do touch "$f"; done
|
|
||||||
;;
|
|
||||||
|
|
||||||
autom4te)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is needed, but is $msg.
|
|
||||||
You might have modified some files without having the
|
|
||||||
proper tools for further handling them.
|
|
||||||
You can get \`$1' as part of \`Autoconf' from any GNU
|
|
||||||
archive site."
|
|
||||||
|
|
||||||
file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
|
|
||||||
test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
|
|
||||||
if test -f "$file"; then
|
|
||||||
touch $file
|
|
||||||
else
|
|
||||||
test -z "$file" || exec >$file
|
|
||||||
echo "#! /bin/sh"
|
|
||||||
echo "# Created by GNU Automake missing as a replacement of"
|
|
||||||
echo "# $ $@"
|
|
||||||
echo "exit 0"
|
|
||||||
chmod +x $file
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
bison|yacc)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' $msg. You should only need it if
|
|
||||||
you modified a \`.y' file. You may need the \`Bison' package
|
|
||||||
in order for those modifications to take effect. You can get
|
|
||||||
\`Bison' from any GNU archive site."
|
|
||||||
rm -f y.tab.c y.tab.h
|
|
||||||
if [ $# -ne 1 ]; then
|
|
||||||
eval LASTARG="\${$#}"
|
|
||||||
case "$LASTARG" in
|
|
||||||
*.y)
|
|
||||||
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
|
|
||||||
if [ -f "$SRCFILE" ]; then
|
|
||||||
cp "$SRCFILE" y.tab.c
|
|
||||||
fi
|
|
||||||
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
|
|
||||||
if [ -f "$SRCFILE" ]; then
|
|
||||||
cp "$SRCFILE" y.tab.h
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
if [ ! -f y.tab.h ]; then
|
|
||||||
echo >y.tab.h
|
|
||||||
fi
|
|
||||||
if [ ! -f y.tab.c ]; then
|
|
||||||
echo 'main() { return 0; }' >y.tab.c
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
lex|flex)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is $msg. You should only need it if
|
|
||||||
you modified a \`.l' file. You may need the \`Flex' package
|
|
||||||
in order for those modifications to take effect. You can get
|
|
||||||
\`Flex' from any GNU archive site."
|
|
||||||
rm -f lex.yy.c
|
|
||||||
if [ $# -ne 1 ]; then
|
|
||||||
eval LASTARG="\${$#}"
|
|
||||||
case "$LASTARG" in
|
|
||||||
*.l)
|
|
||||||
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
|
|
||||||
if [ -f "$SRCFILE" ]; then
|
|
||||||
cp "$SRCFILE" lex.yy.c
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
if [ ! -f lex.yy.c ]; then
|
|
||||||
echo 'main() { return 0; }' >lex.yy.c
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
help2man)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is $msg. You should only need it if
|
|
||||||
you modified a dependency of a manual page. You may need the
|
|
||||||
\`Help2man' package in order for those modifications to take
|
|
||||||
effect. You can get \`Help2man' from any GNU archive site."
|
|
||||||
|
|
||||||
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
|
||||||
if test -z "$file"; then
|
|
||||||
file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
|
|
||||||
fi
|
|
||||||
if [ -f "$file" ]; then
|
|
||||||
touch $file
|
|
||||||
else
|
|
||||||
test -z "$file" || exec >$file
|
|
||||||
echo ".ab help2man is required to generate this page"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
makeinfo)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is $msg. You should only need it if
|
|
||||||
you modified a \`.texi' or \`.texinfo' file, or any other file
|
|
||||||
indirectly affecting the aspect of the manual. The spurious
|
|
||||||
call might also be the consequence of using a buggy \`make' (AIX,
|
|
||||||
DU, IRIX). You might want to install the \`Texinfo' package or
|
|
||||||
the \`GNU make' package. Grab either from any GNU archive site."
|
|
||||||
# The file to touch is that specified with -o ...
|
|
||||||
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
|
||||||
if test -z "$file"; then
|
|
||||||
# ... or it is the one specified with @setfilename ...
|
|
||||||
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
|
||||||
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
|
|
||||||
# ... or it is derived from the source name (dir/f.texi becomes f.info)
|
|
||||||
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
|
|
||||||
fi
|
|
||||||
# If the file does not exist, the user really needs makeinfo;
|
|
||||||
# let's fail without touching anything.
|
|
||||||
test -f $file || exit 1
|
|
||||||
touch $file
|
|
||||||
;;
|
|
||||||
|
|
||||||
tar)
|
|
||||||
shift
|
|
||||||
|
|
||||||
# We have already tried tar in the generic part.
|
|
||||||
# Look for gnutar/gtar before invocation to avoid ugly error
|
|
||||||
# messages.
|
|
||||||
if (gnutar --version > /dev/null 2>&1); then
|
|
||||||
gnutar "$@" && exit 0
|
|
||||||
fi
|
|
||||||
if (gtar --version > /dev/null 2>&1); then
|
|
||||||
gtar "$@" && exit 0
|
|
||||||
fi
|
|
||||||
firstarg="$1"
|
|
||||||
if shift; then
|
|
||||||
case "$firstarg" in
|
|
||||||
*o*)
|
|
||||||
firstarg=`echo "$firstarg" | sed s/o//`
|
|
||||||
tar "$firstarg" "$@" && exit 0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
case "$firstarg" in
|
|
||||||
*h*)
|
|
||||||
firstarg=`echo "$firstarg" | sed s/h//`
|
|
||||||
tar "$firstarg" "$@" && exit 0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: I can't seem to be able to run \`tar' with the given arguments.
|
|
||||||
You may want to install GNU tar or Free paxutils, or check the
|
|
||||||
command line arguments."
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
echo 1>&2 "\
|
|
||||||
WARNING: \`$1' is needed, and is $msg.
|
|
||||||
You might have modified some files without having the
|
|
||||||
proper tools for further handling them. Check the \`README' file,
|
|
||||||
it often tells you about the needed prerequisites for installing
|
|
||||||
this package. You may also peek at any GNU archive site, in case
|
|
||||||
some other package would contain this missing \`$1' program."
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
# Local variables:
|
|
||||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
|
||||||
# time-stamp-start: "scriptversion="
|
|
||||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
|
||||||
# time-stamp-end: "$"
|
|
||||||
# End:
|
|
|
@ -1,158 +0,0 @@
|
||||||
#! /bin/sh
|
|
||||||
# mkinstalldirs --- make directory hierarchy
|
|
||||||
|
|
||||||
scriptversion=2005-06-29.22
|
|
||||||
|
|
||||||
# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
|
|
||||||
# Created: 1993-05-16
|
|
||||||
# Public domain.
|
|
||||||
#
|
|
||||||
# This file is maintained in Automake, please report
|
|
||||||
# bugs to <bug-automake@gnu.org> or send patches to
|
|
||||||
# <automake-patches@gnu.org>.
|
|
||||||
|
|
||||||
errstatus=0
|
|
||||||
dirmode=
|
|
||||||
|
|
||||||
usage="\
|
|
||||||
Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
|
|
||||||
|
|
||||||
Create each directory DIR (with mode MODE, if specified), including all
|
|
||||||
leading file name components.
|
|
||||||
|
|
||||||
Report bugs to <bug-automake@gnu.org>."
|
|
||||||
|
|
||||||
# process command line arguments
|
|
||||||
while test $# -gt 0 ; do
|
|
||||||
case $1 in
|
|
||||||
-h | --help | --h*) # -h for help
|
|
||||||
echo "$usage"
|
|
||||||
exit $?
|
|
||||||
;;
|
|
||||||
-m) # -m PERM arg
|
|
||||||
shift
|
|
||||||
test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
|
|
||||||
dirmode=$1
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
--version)
|
|
||||||
echo "$0 $scriptversion"
|
|
||||||
exit $?
|
|
||||||
;;
|
|
||||||
--) # stop option processing
|
|
||||||
shift
|
|
||||||
break
|
|
||||||
;;
|
|
||||||
-*) # unknown option
|
|
||||||
echo "$usage" 1>&2
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
*) # first non-opt arg
|
|
||||||
break
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
for file
|
|
||||||
do
|
|
||||||
if test -d "$file"; then
|
|
||||||
shift
|
|
||||||
else
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
case $# in
|
|
||||||
0) exit 0 ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
|
|
||||||
# mkdir -p a/c at the same time, both will detect that a is missing,
|
|
||||||
# one will create a, then the other will try to create a and die with
|
|
||||||
# a "File exists" error. This is a problem when calling mkinstalldirs
|
|
||||||
# from a parallel make. We use --version in the probe to restrict
|
|
||||||
# ourselves to GNU mkdir, which is thread-safe.
|
|
||||||
case $dirmode in
|
|
||||||
'')
|
|
||||||
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
|
||||||
echo "mkdir -p -- $*"
|
|
||||||
exec mkdir -p -- "$@"
|
|
||||||
else
|
|
||||||
# On NextStep and OpenStep, the `mkdir' command does not
|
|
||||||
# recognize any option. It will interpret all options as
|
|
||||||
# directories to create, and then abort because `.' already
|
|
||||||
# exists.
|
|
||||||
test -d ./-p && rmdir ./-p
|
|
||||||
test -d ./--version && rmdir ./--version
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
|
|
||||||
test ! -d ./--version; then
|
|
||||||
echo "mkdir -m $dirmode -p -- $*"
|
|
||||||
exec mkdir -m "$dirmode" -p -- "$@"
|
|
||||||
else
|
|
||||||
# Clean up after NextStep and OpenStep mkdir.
|
|
||||||
for d in ./-m ./-p ./--version "./$dirmode";
|
|
||||||
do
|
|
||||||
test -d $d && rmdir $d
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
for file
|
|
||||||
do
|
|
||||||
case $file in
|
|
||||||
/*) pathcomp=/ ;;
|
|
||||||
*) pathcomp= ;;
|
|
||||||
esac
|
|
||||||
oIFS=$IFS
|
|
||||||
IFS=/
|
|
||||||
set fnord $file
|
|
||||||
shift
|
|
||||||
IFS=$oIFS
|
|
||||||
|
|
||||||
for d
|
|
||||||
do
|
|
||||||
test "x$d" = x && continue
|
|
||||||
|
|
||||||
pathcomp=$pathcomp$d
|
|
||||||
case $pathcomp in
|
|
||||||
-*) pathcomp=./$pathcomp ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if test ! -d "$pathcomp"; then
|
|
||||||
echo "mkdir $pathcomp"
|
|
||||||
|
|
||||||
mkdir "$pathcomp" || lasterr=$?
|
|
||||||
|
|
||||||
if test ! -d "$pathcomp"; then
|
|
||||||
errstatus=$lasterr
|
|
||||||
else
|
|
||||||
if test ! -z "$dirmode"; then
|
|
||||||
echo "chmod $dirmode $pathcomp"
|
|
||||||
lasterr=
|
|
||||||
chmod "$dirmode" "$pathcomp" || lasterr=$?
|
|
||||||
|
|
||||||
if test ! -z "$lasterr"; then
|
|
||||||
errstatus=$lasterr
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
pathcomp=$pathcomp/
|
|
||||||
done
|
|
||||||
done
|
|
||||||
|
|
||||||
exit $errstatus
|
|
||||||
|
|
||||||
# Local Variables:
|
|
||||||
# mode: shell-script
|
|
||||||
# sh-indentation: 2
|
|
||||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
|
||||||
# time-stamp-start: "scriptversion="
|
|
||||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
|
||||||
# time-stamp-end: "$"
|
|
||||||
# End:
|
|
|
@ -1,30 +0,0 @@
|
||||||
EXPORTS
|
|
||||||
ldl_session_get_caller
|
|
||||||
ldl_session_get_ip
|
|
||||||
ldl_session_set_private
|
|
||||||
ldl_session_get_private
|
|
||||||
ldl_session_terminate
|
|
||||||
ldl_handle_get_private
|
|
||||||
ldl_session_candidates
|
|
||||||
ldl_session_describe
|
|
||||||
ldl_session_get_state
|
|
||||||
ldl_session_get_candidates
|
|
||||||
ldl_session_get_payloads
|
|
||||||
ldl_global_init
|
|
||||||
ldl_global_destroy
|
|
||||||
ldl_global_set_log_stream
|
|
||||||
ldl_handle_init
|
|
||||||
ldl_handle_run
|
|
||||||
ldl_handle_destroy
|
|
||||||
ldl_handle_set_log_stream
|
|
||||||
ldl_session_create
|
|
||||||
ldl_handle_probe
|
|
||||||
ldl_handle_ready
|
|
||||||
ldl_session_get_id
|
|
||||||
ldl_session_set_ip
|
|
||||||
ldl_global_set_logger
|
|
||||||
ldl_handle_send_msg
|
|
||||||
ldl_session_get_value
|
|
||||||
ldl_session_set_value
|
|
||||||
ldl_session_accept_candidate
|
|
||||||
ldl_session_send_msg
|
|
|
@ -1,76 +0,0 @@
|
||||||
/*
|
|
||||||
* libDingaLing XMPP Jingle Library
|
|
||||||
* Copyright (C) 2005-2014, Anthony Minessale II <anthm@freeswitch.org>
|
|
||||||
*
|
|
||||||
* Version: MPL 1.1
|
|
||||||
*
|
|
||||||
* The contents of this file are subject to the Mozilla Public License Version
|
|
||||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
||||||
* the License. You may obtain a copy of the License at
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*
|
|
||||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
||||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
||||||
* for the specific language governing rights and limitations under the
|
|
||||||
* License.
|
|
||||||
*
|
|
||||||
* The Original Code is libDingaLing XMPP Jingle Library
|
|
||||||
*
|
|
||||||
* The Initial Developer of the Original Code is
|
|
||||||
* Anthony Minessale II <anthm@freeswitch.org>
|
|
||||||
* Portions created by the Initial Developer are Copyright (C)
|
|
||||||
* the Initial Developer. All Rights Reserved.
|
|
||||||
*
|
|
||||||
* Contributor(s):
|
|
||||||
*
|
|
||||||
* Anthony Minessale II <anthm@freeswitch.org>
|
|
||||||
*
|
|
||||||
* ldl_compat.h -- Platform Compatability Header File
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
/*! \file ldl_compat.h
|
|
||||||
\brief Platform Compatability Header File
|
|
||||||
*/
|
|
||||||
#ifndef LDL_COMPAT_H
|
|
||||||
#define LDL_COMPAT_H
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
#ifdef __STUPIDFORMATBUG__
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#if !defined(_STDINT) && !defined(uint32_t)
|
|
||||||
typedef unsigned __int8 uint8_t;
|
|
||||||
typedef unsigned __int16 uint16_t;
|
|
||||||
typedef unsigned __int32 uint32_t;
|
|
||||||
typedef unsigned __int64 uint64_t;
|
|
||||||
typedef __int8 int8_t;
|
|
||||||
typedef __int16 int16_t;
|
|
||||||
typedef __int32 int32_t;
|
|
||||||
typedef __int64 int64_t;
|
|
||||||
typedef unsigned long in_addr_t;
|
|
||||||
#endif
|
|
||||||
#if _MSC_VER < 1900
|
|
||||||
#define snprintf _snprintf
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* For Emacs:
|
|
||||||
* Local Variables:
|
|
||||||
* mode:c
|
|
||||||
* indent-tabs-mode:t
|
|
||||||
* tab-width:4
|
|
||||||
* c-basic-offset:4
|
|
||||||
* End:
|
|
||||||
* For VIM:
|
|
||||||
* vim:set softtabstop=4 shiftwidth=4 tabstop=4 noet:
|
|
||||||
*/
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,751 +0,0 @@
|
||||||
/*
|
|
||||||
* libDingaLing XMPP Jingle Library
|
|
||||||
* Copyright (C) 2005-2014, Anthony Minessale II <anthm@freeswitch.org>
|
|
||||||
*
|
|
||||||
* Version: MPL 1.1
|
|
||||||
*
|
|
||||||
* The contents of this file are subject to the Mozilla Public License Version
|
|
||||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
||||||
* the License. You may obtain a copy of the License at
|
|
||||||
* http://www.mozilla.org/MPL/
|
|
||||||
*
|
|
||||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
||||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
||||||
* for the specific language governing rights and limitations under the
|
|
||||||
* License.
|
|
||||||
*
|
|
||||||
* The Original Code is libDingaLing XMPP Jingle Library
|
|
||||||
*
|
|
||||||
* The Initial Developer of the Original Code is
|
|
||||||
* Anthony Minessale II <anthm@freeswitch.org>
|
|
||||||
* Portions created by the Initial Developer are Copyright (C)
|
|
||||||
* the Initial Developer. All Rights Reserved.
|
|
||||||
*
|
|
||||||
* Contributor(s):
|
|
||||||
*
|
|
||||||
* Anthony Minessale II <anthm@freeswitch.org>
|
|
||||||
*
|
|
||||||
* libdingaling.h -- Main Header File
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*! \file libdingaling.h
|
|
||||||
\brief Main Header File
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\defgroup core1 libDingaLing Library
|
|
||||||
\ingroup LIBDINGALING
|
|
||||||
\{
|
|
||||||
*/
|
|
||||||
/* OMG */
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#define __LDL_FUNC__ __FUNCTION__
|
|
||||||
#define inline __inline
|
|
||||||
#else
|
|
||||||
#define __LDL_FUNC__ (const char *)__func__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef LIBDINGALING_H
|
|
||||||
#define LIBDINGALING_H
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
#ifdef __STUPIDFORMATBUG__
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined (__SVR4) && defined (__sun)
|
|
||||||
#define __EXTENSIONS__ 1
|
|
||||||
#include <strings.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define LDL_HANDLE_QLEN 2000
|
|
||||||
#define LDL_MAX_CANDIDATES 25
|
|
||||||
#define LDL_MAX_PAYLOADS 50
|
|
||||||
#define LDL_RETRY 3
|
|
||||||
#define IKS_NS_COMPONENT "jabber:component:accept"
|
|
||||||
/* period between keep alive signals in 1sec units*/
|
|
||||||
#define LDL_KEEPALIVE_TIMEOUT 300
|
|
||||||
|
|
||||||
typedef struct ldl_crypto_data_s {
|
|
||||||
char *tag;
|
|
||||||
char *suite;
|
|
||||||
char *key;
|
|
||||||
} ldl_crypto_data_t;
|
|
||||||
|
|
||||||
/*! \brief A structure to store a jingle candidate */
|
|
||||||
struct ldl_candidate {
|
|
||||||
/*! the transport id of the candidate */
|
|
||||||
char *tid;
|
|
||||||
/*! the name of the candidate */
|
|
||||||
char *name;
|
|
||||||
/*! the type of the candidate */
|
|
||||||
char *type;
|
|
||||||
/*! the protocol of the candidate */
|
|
||||||
char *protocol;
|
|
||||||
/*! the STUN username of the candidate */
|
|
||||||
char *username;
|
|
||||||
/*! the STUN password of the candidate */
|
|
||||||
char *password;
|
|
||||||
/*! the ip address of the candidate */
|
|
||||||
char *address;
|
|
||||||
/*! the stun/rtp port of the candidate */
|
|
||||||
uint16_t port;
|
|
||||||
/*! the preference level of the candidate */
|
|
||||||
double pref;
|
|
||||||
};
|
|
||||||
typedef struct ldl_candidate ldl_candidate_t;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
LDL_PAYLOAD_AUDIO,
|
|
||||||
LDL_PAYLOAD_VIDEO
|
|
||||||
} ldl_payload_type_t;
|
|
||||||
|
|
||||||
/*! \brief A structure to store a jingle audio payload */
|
|
||||||
struct ldl_payload {
|
|
||||||
/*! the type of the payload */
|
|
||||||
ldl_payload_type_t type;
|
|
||||||
/*! the iana name of the payload type */
|
|
||||||
char *name;
|
|
||||||
/*! the iana id of the payload type */
|
|
||||||
unsigned int id;
|
|
||||||
|
|
||||||
/* Audio */
|
|
||||||
|
|
||||||
/*! the transfer rate of the payload type */
|
|
||||||
unsigned int rate;
|
|
||||||
/*! the bits per second of the payload type */
|
|
||||||
unsigned int bps;
|
|
||||||
|
|
||||||
/* Video */
|
|
||||||
|
|
||||||
/*! the width of the video payload type */
|
|
||||||
unsigned int width;
|
|
||||||
/*! the width of the video payload type */
|
|
||||||
unsigned int height;
|
|
||||||
/*! the framerate of the video payload type */
|
|
||||||
unsigned int framerate;
|
|
||||||
|
|
||||||
unsigned int ptime;
|
|
||||||
};
|
|
||||||
typedef struct ldl_payload ldl_payload_t;
|
|
||||||
|
|
||||||
|
|
||||||
enum ldl_transport_type {
|
|
||||||
LDL_TPORT_RTP,
|
|
||||||
LDL_TPORT_VIDEO_RTP,
|
|
||||||
LDL_TPORT_RTCP,
|
|
||||||
LDL_TPORT_VIDEO_RTCP,
|
|
||||||
|
|
||||||
/* Nothing below that line */
|
|
||||||
LDL_TPORT_MAX
|
|
||||||
};
|
|
||||||
typedef enum ldl_transport_type ldl_transport_type_t;
|
|
||||||
|
|
||||||
static inline const char *ldl_transport_type_str(ldl_transport_type_t type)
|
|
||||||
{
|
|
||||||
static const char *name[] = { "rtp", "video_rtp", "rtcp", "video_rtcp" };
|
|
||||||
return type >= LDL_TPORT_MAX ? NULL : name[type];
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline ldl_transport_type_t ldl_transport_type_parse(const char *type) {
|
|
||||||
if (!strcasecmp(type, "rtp")) {
|
|
||||||
return LDL_TPORT_RTP;
|
|
||||||
} else if (!strcasecmp(type, "rtcp")) {
|
|
||||||
return LDL_TPORT_RTCP;
|
|
||||||
} else if (!strcasecmp(type, "video_rtp")) {
|
|
||||||
return LDL_TPORT_VIDEO_RTP;
|
|
||||||
} else if (!strcasecmp(type, "video_rtcp")) {
|
|
||||||
return LDL_TPORT_VIDEO_RTCP;
|
|
||||||
} else {
|
|
||||||
return LDL_TPORT_MAX;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
/*! \brief A structure to store a jingle video payload */
|
|
||||||
struct ldl_vpayload {
|
|
||||||
/*! the iana name of the video payload type */
|
|
||||||
char *name;
|
|
||||||
/*! the iana id of the video payload type */
|
|
||||||
unsigned int id;
|
|
||||||
/*! the width of the video payload type */
|
|
||||||
unsigned int width;
|
|
||||||
/*! the width of the video payload type */
|
|
||||||
unsigned int height;
|
|
||||||
/*! the framerate of the video payload type */
|
|
||||||
unsigned int framerate;
|
|
||||||
};
|
|
||||||
typedef struct ldl_vpayload ldl_vpayload_t;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct ldl_handle;
|
|
||||||
typedef struct ldl_handle ldl_handle_t;
|
|
||||||
|
|
||||||
struct ldl_session;
|
|
||||||
typedef struct ldl_session ldl_session_t;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
LDL_STATUS_SUCCESS,
|
|
||||||
LDL_STATUS_FALSE,
|
|
||||||
LDL_STATUS_MEMERR,
|
|
||||||
} ldl_status;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
LDL_FLAG_INIT = (1 << 0),
|
|
||||||
LDL_FLAG_RUNNING = (1 << 1),
|
|
||||||
LDL_FLAG_AUTHORIZED = (1 << 2),
|
|
||||||
LDL_FLAG_READY = (1 << 3),
|
|
||||||
LDL_FLAG_CONNECTED = (1 << 4),
|
|
||||||
LDL_FLAG_STOPPED = (1 << 5),
|
|
||||||
LDL_FLAG_BREAK = (1 << 6)
|
|
||||||
} ldl_flag_t;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
LDL_FLAG_NONE = 0,
|
|
||||||
LDL_FLAG_TLS = (1 << 10),
|
|
||||||
LDL_FLAG_SASL_PLAIN = (1 << 11),
|
|
||||||
LDL_FLAG_SASL_MD5 = (1 << 12),
|
|
||||||
LDL_FLAG_COMPONENT = (1 << 13),
|
|
||||||
LDL_FLAG_OUTBOUND = (1 << 14),
|
|
||||||
LDL_FLAG_GATEWAY = (1 << 15),
|
|
||||||
LDL_FLAG_JINGLE = (1 << 16)
|
|
||||||
} ldl_user_flag_t;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
LDL_SIGNAL_NONE,
|
|
||||||
LDL_SIGNAL_INITIATE,
|
|
||||||
LDL_SIGNAL_CANDIDATES,
|
|
||||||
LDL_SIGNAL_MSG,
|
|
||||||
LDL_SIGNAL_PRESENCE_IN,
|
|
||||||
LDL_SIGNAL_PRESENCE_OUT,
|
|
||||||
LDL_SIGNAL_PRESENCE_PROBE,
|
|
||||||
LDL_SIGNAL_ROSTER,
|
|
||||||
LDL_SIGNAL_SUBSCRIBE,
|
|
||||||
LDL_SIGNAL_UNSUBSCRIBE,
|
|
||||||
LDL_SIGNAL_VCARD,
|
|
||||||
LDL_SIGNAL_TERMINATE,
|
|
||||||
LDL_SIGNAL_ERROR,
|
|
||||||
LDL_SIGNAL_LOGIN_SUCCESS,
|
|
||||||
LDL_SIGNAL_LOGIN_FAILURE,
|
|
||||||
LDL_SIGNAL_CONNECTED,
|
|
||||||
LDL_SIGNAL_TRANSPORT_ACCEPT,
|
|
||||||
LDL_SIGNAL_REJECT,
|
|
||||||
LDL_SIGNAL_REDIRECT
|
|
||||||
} ldl_signal_t;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
LDL_REPLY_ACK,
|
|
||||||
LDL_REPLY_NACK,
|
|
||||||
} ldl_reply_t;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
LDL_STATE_NEW,
|
|
||||||
LDL_STATE_ANSWERED,
|
|
||||||
LDL_STATE_DESTROYED,
|
|
||||||
} ldl_state_t;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
LDL_DESCRIPTION_INITIATE,
|
|
||||||
LDL_DESCRIPTION_ACCEPT
|
|
||||||
} ldl_description_t;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
LDL_QUEUE_NONE,
|
|
||||||
LDL_QUEUE_SENT
|
|
||||||
} ldl_queue_t;
|
|
||||||
|
|
||||||
#define DL_PRE __FILE__, __LDL_FUNC__, __LINE__
|
|
||||||
#define DL_LOG_DEBUG DL_PRE, 7
|
|
||||||
#define DL_LOG_INFO DL_PRE, 6
|
|
||||||
#define DL_LOG_NOTICE DL_PRE, 5
|
|
||||||
#define DL_LOG_WARNING DL_PRE, 4
|
|
||||||
#define DL_LOG_ERR DL_PRE, 3
|
|
||||||
#define DL_LOG_CRIT DL_PRE, 2
|
|
||||||
#define DL_LOG_ALERT DL_PRE, 1
|
|
||||||
#define DL_LOG_EMERG DL_PRE, 0
|
|
||||||
|
|
||||||
typedef ldl_status (*ldl_loop_callback_t)(ldl_handle_t *);
|
|
||||||
typedef ldl_status (*ldl_session_callback_t)(ldl_handle_t *, ldl_session_t *, ldl_signal_t, char *, char *, char *, char *);
|
|
||||||
typedef ldl_status (*ldl_response_callback_t)(ldl_handle_t *, char *);
|
|
||||||
typedef void (*ldl_logger_t)(char *file, const char *func, int line, int level, char *fmt, ...);
|
|
||||||
|
|
||||||
#define ldl_yield(ms) apr_sleep(ms * 10); apr_thread_yield();
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Test for a common domain in 2 jid
|
|
||||||
\param id_a the first id
|
|
||||||
\param id_b the second id
|
|
||||||
\return 1 if the domains match 0 if they dont or -1 if either id is invalid
|
|
||||||
\note the id may or may not contain a user and/or resource
|
|
||||||
*/
|
|
||||||
static inline int ldl_jid_domcmp(char *id_a, char *id_b)
|
|
||||||
{
|
|
||||||
char *id_a_host, *id_b_host, *id_a_r, *id_b_r;
|
|
||||||
|
|
||||||
id_a_host = strchr(id_a, '@');
|
|
||||||
if (id_a_host) {
|
|
||||||
id_a_host++;
|
|
||||||
} else {
|
|
||||||
id_a_host = id_a;
|
|
||||||
}
|
|
||||||
|
|
||||||
id_b_host = strchr(id_b, '@');
|
|
||||||
if (id_b_host) {
|
|
||||||
id_b_host++;
|
|
||||||
} else {
|
|
||||||
id_b_host = id_b;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (id_a_host && id_b_host) {
|
|
||||||
size_t id_a_len = 0, id_b_len = 0, len = 0;
|
|
||||||
|
|
||||||
id_a_r = strchr(id_a_host, '/');
|
|
||||||
if (id_a_r) {
|
|
||||||
id_a_len = id_a_r - id_a_host;
|
|
||||||
} else {
|
|
||||||
id_a_len = strlen(id_a_host);
|
|
||||||
}
|
|
||||||
|
|
||||||
id_b_r = strchr(id_b_host, '/');
|
|
||||||
if (id_b_r) {
|
|
||||||
id_b_len = id_b_r - id_b_host;
|
|
||||||
} else {
|
|
||||||
id_b_len = strlen(id_b_host);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (id_a_len > id_b_len) {
|
|
||||||
len = id_b_len;
|
|
||||||
} else {
|
|
||||||
len = id_a_len;
|
|
||||||
}
|
|
||||||
|
|
||||||
return strncasecmp(id_a_host, id_b_host, len) ? 0 : 1;
|
|
||||||
}
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Test for the existance of a flag on an arbitary object
|
|
||||||
\param obj the object to test
|
|
||||||
\param flag the or'd list of flags to test
|
|
||||||
\return true value if the object has the flags defined
|
|
||||||
*/
|
|
||||||
#define ldl_test_flag(obj, flag) ((obj)->flags & flag)
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Set a flag on an arbitrary object
|
|
||||||
\param obj the object to set the flags on
|
|
||||||
\param flag the or'd list of flags to set
|
|
||||||
*/
|
|
||||||
#define ldl_set_flag(obj, flag) (obj)->flags |= (flag)
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Clear a flag on an arbitrary object
|
|
||||||
\param obj the object to test
|
|
||||||
\param flag the or'd list of flags to clear
|
|
||||||
*/
|
|
||||||
#define ldl_clear_flag(obj, flag) (obj)->flags &= ~(flag)
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Set a flag on an arbitrary object while locked
|
|
||||||
\param obj the object to set the flags on
|
|
||||||
\param flag the or'd list of flags to set
|
|
||||||
*/
|
|
||||||
#define ldl_set_flag_locked(obj, flag) assert(obj->flag_mutex != NULL);\
|
|
||||||
apr_thread_mutex_lock(obj->flag_mutex);\
|
|
||||||
(obj)->flags |= (flag);\
|
|
||||||
apr_thread_mutex_unlock(obj->flag_mutex);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Clear a flag on an arbitrary object
|
|
||||||
\param obj the object to test
|
|
||||||
\param flag the or'd list of flags to clear
|
|
||||||
*/
|
|
||||||
#define ldl_clear_flag_locked(obj, flag) apr_thread_mutex_lock(obj->flag_mutex); (obj)->flags &= ~(flag); apr_thread_mutex_unlock(obj->flag_mutex);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Copy flags from one arbitrary object to another
|
|
||||||
\param dest the object to copy the flags to
|
|
||||||
\param src the object to copy the flags from
|
|
||||||
\param flags the flags to copy
|
|
||||||
*/
|
|
||||||
#define ldl_copy_flags(dest, src, flags) (dest)->flags &= ~(flags); (dest)->flags |= ((src)->flags & (flags))
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Test for NULL or zero length string
|
|
||||||
\param s the string to test
|
|
||||||
\return true value if the string is NULL or zero length
|
|
||||||
*/
|
|
||||||
#define ldl_strlen_zero(s) (s && *s != '\0') ? 0 : 1
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Destroy a Jingle Session
|
|
||||||
\param session_p the session to destroy
|
|
||||||
\return SUCCESS OR FAILURE
|
|
||||||
*/
|
|
||||||
ldl_status ldl_session_destroy(ldl_session_t **session_p);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Get a value from a session
|
|
||||||
\param session the session
|
|
||||||
\param key the key to look up
|
|
||||||
\return the value
|
|
||||||
*/
|
|
||||||
char *ldl_session_get_value(ldl_session_t *session, char *key);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Set a value on a session
|
|
||||||
\param session the session
|
|
||||||
\param key the key to set
|
|
||||||
\param val the value of the key
|
|
||||||
*/
|
|
||||||
void ldl_session_set_value(ldl_session_t *session, const char *key, const char *val);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Create a Jingle Session
|
|
||||||
\param session_p pointer to reference the session
|
|
||||||
\param handle handle to associate the session with
|
|
||||||
\param id the id to use for the session
|
|
||||||
\param them the id of the other end of the call
|
|
||||||
\param me the id of our end of the call
|
|
||||||
\param flags user flags
|
|
||||||
\return SUCCESS OR FAILURE
|
|
||||||
*/
|
|
||||||
ldl_status ldl_session_create(ldl_session_t **session_p, ldl_handle_t *handle, char *id, char *them, char *me, ldl_user_flag_t flags);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief get the id of a session
|
|
||||||
\param session the session to get the id of
|
|
||||||
\return the requested id
|
|
||||||
*/
|
|
||||||
char *ldl_session_get_id(ldl_session_t *session);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Get the caller name of a session
|
|
||||||
\param session the session to get the caller from
|
|
||||||
\return the caller name
|
|
||||||
*/
|
|
||||||
char *ldl_session_get_caller(ldl_session_t *session);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Get the callee name of a session
|
|
||||||
\param session the session to get the callee from
|
|
||||||
\return the callee name
|
|
||||||
*/
|
|
||||||
char *ldl_session_get_callee(ldl_session_t *session);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Set the ip of a session
|
|
||||||
\param session the session to set the ip on
|
|
||||||
\param ip the ip
|
|
||||||
*/
|
|
||||||
void ldl_session_set_ip(ldl_session_t *session, char *ip);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Get the ip of a session
|
|
||||||
\param session the session to get the ip from
|
|
||||||
\return the ip
|
|
||||||
*/
|
|
||||||
char *ldl_session_get_ip(ldl_session_t *session);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Set a private pointer to associate with the session
|
|
||||||
\param session the session to set the data pointer to
|
|
||||||
\param private_data the data to associate
|
|
||||||
*/
|
|
||||||
void ldl_session_set_private(ldl_session_t *session, void *private_data);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Get a private pointer from a session
|
|
||||||
\param session the session to get the data from
|
|
||||||
\return the data
|
|
||||||
*/
|
|
||||||
void *ldl_session_get_private(ldl_session_t *session);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Accept a candidate
|
|
||||||
\param session the session to accept on
|
|
||||||
\param candidate the candidate to accept
|
|
||||||
*/
|
|
||||||
void ldl_session_accept_candidate(ldl_session_t *session, ldl_candidate_t *candidate);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief turn logging on/off
|
|
||||||
\param on (TRUE or FALSE)
|
|
||||||
\return current state
|
|
||||||
*/
|
|
||||||
int ldl_global_debug(int on);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Set a custom logger
|
|
||||||
\param logger the logger function
|
|
||||||
*/
|
|
||||||
void ldl_global_set_logger(ldl_logger_t logger);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Perform a probe on a given id to resolve the proper Jingle Resource
|
|
||||||
\param handle the connection handle to use.
|
|
||||||
\param id the id to probe
|
|
||||||
\param from the from string
|
|
||||||
\param buf a string to store the result
|
|
||||||
\param len the size in bytes of the string
|
|
||||||
\return a pointer to buf if a successful lookup was made otherwise NULL
|
|
||||||
*/
|
|
||||||
char *ldl_handle_probe(ldl_handle_t *handle, char *id, char *from, char *buf, unsigned int len);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Perform a discovery on a given id to resolve the proper Jingle Resource
|
|
||||||
\param handle the connection handle to use.
|
|
||||||
\param id the id to probe
|
|
||||||
\param from the from string
|
|
||||||
\param buf a string to store the result
|
|
||||||
\param len the size in bytes of the string
|
|
||||||
\return a pointer to buf if a successful lookup was made otherwise NULL
|
|
||||||
*/
|
|
||||||
char *ldl_handle_disco(ldl_handle_t *handle, char *id, char *from, char *buf, unsigned int len);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Signal a termination request on a given session
|
|
||||||
\param session the session to terminate
|
|
||||||
\return TRUE if the signal was sent.
|
|
||||||
*/
|
|
||||||
unsigned int ldl_session_terminate(ldl_session_t *session);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Get the private data of a connection handle
|
|
||||||
\param handle the conection handle
|
|
||||||
\return the requested data
|
|
||||||
*/
|
|
||||||
void *ldl_handle_get_private(ldl_handle_t *handle);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Get the full login of a connection handle
|
|
||||||
\param handle the conection handle
|
|
||||||
\return the requested data
|
|
||||||
*/
|
|
||||||
char *ldl_handle_get_login(ldl_handle_t *handle);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Send a message to a session
|
|
||||||
\param session the session handle
|
|
||||||
\param subject optional subject
|
|
||||||
\param body body of the message
|
|
||||||
*/
|
|
||||||
void ldl_session_send_msg(ldl_session_t *session, char *subject, char *body);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Send a presence notification to a target
|
|
||||||
\param handle the handle to send with
|
|
||||||
\param from the from address
|
|
||||||
\param to the to address
|
|
||||||
\param type the type of presence
|
|
||||||
\param rpid data for the icon
|
|
||||||
\param message a status message
|
|
||||||
\param avatar the path to an avatar image
|
|
||||||
*/
|
|
||||||
void ldl_handle_send_presence(ldl_handle_t *handle, char *from, char *to, char *type, char *rpid, char *message, char *avatar);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Send a vcard
|
|
||||||
\param handle the handle to send with
|
|
||||||
\param from the from address
|
|
||||||
\param to the to address
|
|
||||||
\param id the request id
|
|
||||||
\param vcard the text xml of the vcard
|
|
||||||
*/
|
|
||||||
void ldl_handle_send_vcard(ldl_handle_t *handle, char *from, char *to, char *id, char *vcard);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Send a message
|
|
||||||
\param handle the conection handle
|
|
||||||
\param from the message sender
|
|
||||||
\param to the message recipiant
|
|
||||||
\param subject optional subject
|
|
||||||
\param body body of the message
|
|
||||||
*/
|
|
||||||
void ldl_handle_send_msg(ldl_handle_t *handle, char *from, char *to, const char *subject, const char *body);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Offer candidates to a potential session
|
|
||||||
\param session the session to send candidates on
|
|
||||||
\param candidates an array of candidate description objects
|
|
||||||
\param clen the number of elements in the candidates array
|
|
||||||
\return the message_id of the generated xmpp request
|
|
||||||
*/
|
|
||||||
unsigned int ldl_session_candidates(ldl_session_t *session,
|
|
||||||
ldl_candidate_t *candidates,
|
|
||||||
unsigned int clen);
|
|
||||||
|
|
||||||
unsigned int ldl_session_transport(ldl_session_t *session,
|
|
||||||
ldl_candidate_t *candidates,
|
|
||||||
unsigned int clen);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Initiate or Accept a new session and provide transport options
|
|
||||||
\param session the session to initiate or accept
|
|
||||||
\param payloads an array of payload description objects
|
|
||||||
\param plen the number of elements in the payloads array
|
|
||||||
\param description the type of description LDL_DESCRIPTION_INITIATE or LDL_DESCRIPTION_ACCEPT
|
|
||||||
\return the message_id of the generated xmpp request
|
|
||||||
*/
|
|
||||||
unsigned int ldl_session_describe(ldl_session_t *session,
|
|
||||||
ldl_payload_t *payloads,
|
|
||||||
unsigned int plen,
|
|
||||||
ldl_description_t description, unsigned int *audio_ssrc, unsigned int *video_ssrc,
|
|
||||||
ldl_crypto_data_t *audio_crypto_data, ldl_crypto_data_t *video_crypto_data);
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief get a session's state
|
|
||||||
\param session a session to get the state from
|
|
||||||
\return the state
|
|
||||||
*/
|
|
||||||
ldl_state_t ldl_session_get_state(ldl_session_t *session);
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief get the candidates
|
|
||||||
\param session the session
|
|
||||||
\param tport type of transport (rtp,rtcp,video_rtp,video_rtcp,etc.)
|
|
||||||
\param candidates pointer to point at array of the candidates
|
|
||||||
\param len the resulting len of the array pointer
|
|
||||||
\return success or failure
|
|
||||||
*/
|
|
||||||
ldl_status ldl_session_get_candidates(ldl_session_t *session, ldl_transport_type_t tport, ldl_candidate_t **candidates, unsigned int *len);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief get the payloads
|
|
||||||
\param session the session
|
|
||||||
\param payloads pointer to point at array of the payloads
|
|
||||||
\param len the resulting len of the array pointer
|
|
||||||
\return success or failure
|
|
||||||
*/
|
|
||||||
ldl_status ldl_session_get_payloads(ldl_session_t *session, ldl_payload_t **payloads, unsigned int *len);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Initilize libDingaLing
|
|
||||||
\param debug debug level
|
|
||||||
\return success or failure
|
|
||||||
*/
|
|
||||||
ldl_status ldl_global_init(int debug);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Destroy libDingaLing
|
|
||||||
\return success or failure
|
|
||||||
*/
|
|
||||||
ldl_status ldl_global_destroy(void);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Set the log stream
|
|
||||||
\param log_stream the new log stream
|
|
||||||
*/
|
|
||||||
void ldl_global_set_log_stream(FILE *log_stream);
|
|
||||||
|
|
||||||
int8_t ldl_handle_ready(ldl_handle_t *handle);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Initilize a new libDingaLing handle
|
|
||||||
\param handle the Dingaling handle to initialize
|
|
||||||
\param login the xmpp login
|
|
||||||
\param password the password
|
|
||||||
\param server the server address
|
|
||||||
\param flags user flags
|
|
||||||
\param status_msg status message to advertise
|
|
||||||
\param loop_callback optional loop callback
|
|
||||||
\param session_callback function to call on session signalling
|
|
||||||
\param response_callback function to call on responses
|
|
||||||
\param private_info optional pointer to private data
|
|
||||||
\return success or failure
|
|
||||||
*/
|
|
||||||
ldl_status ldl_handle_init(ldl_handle_t **handle,
|
|
||||||
char *login,
|
|
||||||
char *password,
|
|
||||||
char *server,
|
|
||||||
ldl_user_flag_t flags,
|
|
||||||
char *status_msg,
|
|
||||||
char *priority,
|
|
||||||
ldl_loop_callback_t loop_callback,
|
|
||||||
ldl_session_callback_t session_callback,
|
|
||||||
ldl_response_callback_t response_callback,
|
|
||||||
void *private_info);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Run a libDingaLing handle
|
|
||||||
\param handle the Dingaling handle to run
|
|
||||||
*/
|
|
||||||
void ldl_handle_run(ldl_handle_t *handle);
|
|
||||||
|
|
||||||
int ldl_session_gateway(ldl_session_t *handle);
|
|
||||||
void ldl_session_set_gateway(ldl_session_t *session);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Stop a libDingaLing handle
|
|
||||||
\param handle the Dingaling handle to stop
|
|
||||||
*/
|
|
||||||
void ldl_handle_stop(ldl_handle_t *handle);
|
|
||||||
|
|
||||||
int ldl_handle_running(ldl_handle_t *handle);
|
|
||||||
int ldl_handle_connected(ldl_handle_t *handle);
|
|
||||||
int ldl_handle_authorized(ldl_handle_t *handle);
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Destroy a libDingaLing handle
|
|
||||||
\param handle the Dingaling handle to destroy
|
|
||||||
\return success or failure
|
|
||||||
*/
|
|
||||||
ldl_status ldl_handle_destroy(ldl_handle_t **handle);
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Set the log stream on a handle
|
|
||||||
\param handle the Dingaling handle
|
|
||||||
\param log_stream the new log stream
|
|
||||||
*/
|
|
||||||
void ldl_handle_set_log_stream(ldl_handle_t *handle, FILE *log_stream);
|
|
||||||
|
|
||||||
ldl_status ldl_global_terminate(void);
|
|
||||||
|
|
||||||
///\}
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
/** \mainpage libDingaling
|
|
||||||
* libDingaling - Cross Platform Jingle (Google Talk) voip signaling library
|
|
||||||
|
|
||||||
* \section intro Introduction
|
|
||||||
*
|
|
||||||
* \section supports Supported Platforms
|
|
||||||
* libDingaling has been built on the following platforms:
|
|
||||||
*
|
|
||||||
* - Linux (x86, x86_64)
|
|
||||||
* - Windows (MSVC 2005)
|
|
||||||
* - Mac OS X (intel & ppc )
|
|
||||||
*
|
|
||||||
* \section depends Dependencies
|
|
||||||
* libDingaling makes use of the following external libraries.
|
|
||||||
*
|
|
||||||
* - APR (http://apr.apache.org)
|
|
||||||
* - iksemel (http://iksemel.jabberstudio.org/)
|
|
||||||
*
|
|
||||||
* \section license Licensing
|
|
||||||
*
|
|
||||||
* libDingaling is licensed under the terms of the MPL 1.1
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* For Emacs:
|
|
||||||
* Local Variables:
|
|
||||||
* mode:c
|
|
||||||
* indent-tabs-mode:t
|
|
||||||
* tab-width:4
|
|
||||||
* c-basic-offset:4
|
|
||||||
* End:
|
|
||||||
* For VIM:
|
|
||||||
* vim:set softtabstop=4 shiftwidth=4 tabstop=4 noet:
|
|
||||||
*/
|
|
|
@ -1,639 +0,0 @@
|
||||||
/*-
|
|
||||||
* Copyright (c) 2001-2003 Allan Saddi <allan@saddi.com>
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY ALLAN SADDI AND HIS CONTRIBUTORS ``AS IS''
|
|
||||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
||||||
* ARE DISCLAIMED. IN NO EVENT SHALL ALLAN SADDI OR HIS CONTRIBUTORS BE
|
|
||||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
||||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
||||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
||||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
||||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*
|
|
||||||
* $Id: sha1.c 680 2003-07-25 21:57:38Z asaddi $
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Define WORDS_BIGENDIAN if compiling on a big-endian architecture.
|
|
||||||
*
|
|
||||||
* Define SHA1_TEST to test the implementation using the NIST's
|
|
||||||
* sample messages. The output should be:
|
|
||||||
*
|
|
||||||
* a9993e36 4706816a ba3e2571 7850c26c 9cd0d89d
|
|
||||||
* 84983e44 1c3bd26e baae4aa1 f95129e5 e54670f1
|
|
||||||
* 34aa973c d4c4daa4 f61eeb2b dbad2731 6534016f
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include <config.h>
|
|
||||||
#endif /* HAVE_CONFIG_H */
|
|
||||||
|
|
||||||
#if HAVE_INTTYPES_H
|
|
||||||
# include <inttypes.h>
|
|
||||||
#else
|
|
||||||
# if HAVE_STDINT_H
|
|
||||||
# include <stdint.h>
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#define inline __inline
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "sha1.h"
|
|
||||||
|
|
||||||
#ifdef __clang__
|
|
||||||
#pragma clang diagnostic push
|
|
||||||
#pragma clang diagnostic ignored "-Wunused-const-variable"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
static const char rcsid[] =
|
|
||||||
"$Id: sha1.c 680 2003-07-25 21:57:38Z asaddi $";
|
|
||||||
#endif /* !lint */
|
|
||||||
|
|
||||||
#ifdef __clang__
|
|
||||||
#pragma clang diagnostic pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define ROTL(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
|
|
||||||
#define ROTR(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
|
|
||||||
|
|
||||||
#define F_0_19(x, y, z) ((z) ^ ((x) & ((y) ^ (z))))
|
|
||||||
#define F_20_39(x, y, z) ((x) ^ (y) ^ (z))
|
|
||||||
#define F_40_59(x, y, z) (((x) & ((y) | (z))) | ((y) & (z)))
|
|
||||||
#define F_60_79(x, y, z) ((x) ^ (y) ^ (z))
|
|
||||||
|
|
||||||
#define DO_ROUND(F, K) { \
|
|
||||||
temp = ROTL(a, 5) + F(b, c, d) + e + *(W++) + K; \
|
|
||||||
e = d; \
|
|
||||||
d = c; \
|
|
||||||
c = ROTL(b, 30); \
|
|
||||||
b = a; \
|
|
||||||
a = temp; \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define K_0_19 0x5a827999L
|
|
||||||
#define K_20_39 0x6ed9eba1L
|
|
||||||
#define K_40_59 0x8f1bbcdcL
|
|
||||||
#define K_60_79 0xca62c1d6L
|
|
||||||
|
|
||||||
#ifndef RUNTIME_ENDIAN
|
|
||||||
|
|
||||||
#ifdef WORDS_BIGENDIAN
|
|
||||||
|
|
||||||
#define BYTESWAP(x) (x)
|
|
||||||
#define BYTESWAP64(x) (x)
|
|
||||||
|
|
||||||
#else /* WORDS_BIGENDIAN */
|
|
||||||
|
|
||||||
#define BYTESWAP(x) ((ROTR((x), 8) & 0xff00ff00L) | \
|
|
||||||
(ROTL((x), 8) & 0x00ff00ffL))
|
|
||||||
#define BYTESWAP64(x) _byteswap64(x)
|
|
||||||
|
|
||||||
static inline uint64_t _byteswap64(uint64_t x)
|
|
||||||
{
|
|
||||||
uint32_t a = (uint32_t)(x >> 32);
|
|
||||||
uint32_t b = (uint32_t) x;
|
|
||||||
return ((uint64_t) BYTESWAP(b) << 32) | (uint64_t) BYTESWAP(a);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* WORDS_BIGENDIAN */
|
|
||||||
|
|
||||||
#else /* !RUNTIME_ENDIAN */
|
|
||||||
|
|
||||||
#define BYTESWAP(x) _byteswap(sc->littleEndian, x)
|
|
||||||
#define BYTESWAP64(x) _byteswap64(sc->littleEndian, x)
|
|
||||||
|
|
||||||
#define _BYTESWAP(x) ((ROTR((x), 8) & 0xff00ff00L) | \
|
|
||||||
(ROTL((x), 8) & 0x00ff00ffL))
|
|
||||||
#define _BYTESWAP64(x) __byteswap64(x)
|
|
||||||
|
|
||||||
static inline uint64_t __byteswap64(uint64_t x)
|
|
||||||
{
|
|
||||||
uint32_t a = x >> 32;
|
|
||||||
uint32_t b = (uint32_t) x;
|
|
||||||
return ((uint64_t) _BYTESWAP(b) << 32) | (uint64_t) _BYTESWAP(a);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline uint32_t _byteswap(int littleEndian, uint32_t x)
|
|
||||||
{
|
|
||||||
if (!littleEndian)
|
|
||||||
return x;
|
|
||||||
else
|
|
||||||
return _BYTESWAP(x);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline uint64_t _byteswap64(int littleEndian, uint64_t x)
|
|
||||||
{
|
|
||||||
if (!littleEndian)
|
|
||||||
return x;
|
|
||||||
else
|
|
||||||
return _BYTESWAP64(x);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void setEndian(int *littleEndianp)
|
|
||||||
{
|
|
||||||
union {
|
|
||||||
uint32_t w;
|
|
||||||
uint8_t b[4];
|
|
||||||
} endian;
|
|
||||||
|
|
||||||
endian.w = 1L;
|
|
||||||
*littleEndianp = endian.b[0] != 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* !RUNTIME_ENDIAN */
|
|
||||||
|
|
||||||
static const uint8_t padding[64] = {
|
|
||||||
0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
|
||||||
};
|
|
||||||
|
|
||||||
void
|
|
||||||
SHA1Init (SHA1Context *sc)
|
|
||||||
{
|
|
||||||
#ifdef RUNTIME_ENDIAN
|
|
||||||
setEndian (&sc->littleEndian);
|
|
||||||
#endif /* RUNTIME_ENDIAN */
|
|
||||||
|
|
||||||
sc->totalLength = 0LL;
|
|
||||||
sc->hash[0] = 0x67452301L;
|
|
||||||
sc->hash[1] = 0xefcdab89L;
|
|
||||||
sc->hash[2] = 0x98badcfeL;
|
|
||||||
sc->hash[3] = 0x10325476L;
|
|
||||||
sc->hash[4] = 0xc3d2e1f0L;
|
|
||||||
sc->bufferLength = 0L;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
burnStack (int size)
|
|
||||||
{
|
|
||||||
char buf[128];
|
|
||||||
|
|
||||||
memset (buf, 0, sizeof (buf));
|
|
||||||
size -= sizeof (buf);
|
|
||||||
if (size > 0)
|
|
||||||
burnStack (size);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
SHA1Guts (SHA1Context *sc, const uint32_t *cbuf)
|
|
||||||
{
|
|
||||||
uint32_t buf[80];
|
|
||||||
uint32_t *W, *W3, *W8, *W14, *W16;
|
|
||||||
uint32_t a, b, c, d, e, temp;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
W = buf;
|
|
||||||
|
|
||||||
for (i = 15; i >= 0; i--) {
|
|
||||||
*(W++) = BYTESWAP(*cbuf);
|
|
||||||
cbuf++;
|
|
||||||
}
|
|
||||||
|
|
||||||
W16 = &buf[0];
|
|
||||||
W14 = &buf[2];
|
|
||||||
W8 = &buf[8];
|
|
||||||
W3 = &buf[13];
|
|
||||||
|
|
||||||
for (i = 63; i >= 0; i--) {
|
|
||||||
*W = *(W3++) ^ *(W8++) ^ *(W14++) ^ *(W16++);
|
|
||||||
*W = ROTL(*W, 1);
|
|
||||||
W++;
|
|
||||||
}
|
|
||||||
|
|
||||||
a = sc->hash[0];
|
|
||||||
b = sc->hash[1];
|
|
||||||
c = sc->hash[2];
|
|
||||||
d = sc->hash[3];
|
|
||||||
e = sc->hash[4];
|
|
||||||
|
|
||||||
W = buf;
|
|
||||||
|
|
||||||
#ifndef SHA1_UNROLL
|
|
||||||
#define SHA1_UNROLL 20
|
|
||||||
#endif /* !SHA1_UNROLL */
|
|
||||||
|
|
||||||
#if SHA1_UNROLL == 1
|
|
||||||
for (i = 19; i >= 0; i--)
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
|
|
||||||
for (i = 19; i >= 0; i--)
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
|
|
||||||
for (i = 19; i >= 0; i--)
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
|
|
||||||
for (i = 19; i >= 0; i--)
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
#elif SHA1_UNROLL == 2
|
|
||||||
for (i = 9; i >= 0; i--) {
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 9; i >= 0; i--) {
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 9; i >= 0; i--) {
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 9; i >= 0; i--) {
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
}
|
|
||||||
#elif SHA1_UNROLL == 4
|
|
||||||
for (i = 4; i >= 0; i--) {
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 4; i >= 0; i--) {
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 4; i >= 0; i--) {
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 4; i >= 0; i--) {
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
}
|
|
||||||
#elif SHA1_UNROLL == 5
|
|
||||||
for (i = 3; i >= 0; i--) {
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 3; i >= 0; i--) {
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 3; i >= 0; i--) {
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 3; i >= 0; i--) {
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
}
|
|
||||||
#elif SHA1_UNROLL == 10
|
|
||||||
for (i = 1; i >= 0; i--) {
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 1; i >= 0; i--) {
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 1; i >= 0; i--) {
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 1; i >= 0; i--) {
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
}
|
|
||||||
#elif SHA1_UNROLL == 20
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
DO_ROUND(F_0_19, K_0_19);
|
|
||||||
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
DO_ROUND(F_20_39, K_20_39);
|
|
||||||
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
DO_ROUND(F_40_59, K_40_59);
|
|
||||||
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
DO_ROUND(F_60_79, K_60_79);
|
|
||||||
#else /* SHA1_UNROLL */
|
|
||||||
#error SHA1_UNROLL must be 1, 2, 4, 5, 10 or 20!
|
|
||||||
#endif
|
|
||||||
|
|
||||||
sc->hash[0] += a;
|
|
||||||
sc->hash[1] += b;
|
|
||||||
sc->hash[2] += c;
|
|
||||||
sc->hash[3] += d;
|
|
||||||
sc->hash[4] += e;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
SHA1Update (SHA1Context *sc, const void *vdata, uint32_t len)
|
|
||||||
{
|
|
||||||
const uint8_t *data = vdata;
|
|
||||||
uint32_t bufferBytesLeft;
|
|
||||||
uint32_t bytesToCopy;
|
|
||||||
int needBurn = 0;
|
|
||||||
|
|
||||||
#ifdef SHA1_FAST_COPY
|
|
||||||
if (sc->bufferLength) {
|
|
||||||
bufferBytesLeft = 64L - sc->bufferLength;
|
|
||||||
|
|
||||||
bytesToCopy = bufferBytesLeft;
|
|
||||||
if (bytesToCopy > len)
|
|
||||||
bytesToCopy = len;
|
|
||||||
|
|
||||||
memcpy (&sc->buffer.bytes[sc->bufferLength], data, bytesToCopy);
|
|
||||||
|
|
||||||
sc->totalLength += bytesToCopy * 8L;
|
|
||||||
|
|
||||||
sc->bufferLength += bytesToCopy;
|
|
||||||
data += bytesToCopy;
|
|
||||||
len -= bytesToCopy;
|
|
||||||
|
|
||||||
if (sc->bufferLength == 64L) {
|
|
||||||
SHA1Guts (sc, sc->buffer.words);
|
|
||||||
needBurn = 1;
|
|
||||||
sc->bufferLength = 0L;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
while (len > 63) {
|
|
||||||
sc->totalLength += 512L;
|
|
||||||
|
|
||||||
SHA1Guts (sc, data);
|
|
||||||
needBurn = 1;
|
|
||||||
|
|
||||||
data += 64L;
|
|
||||||
len -= 64L;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (len) {
|
|
||||||
memcpy (&sc->buffer.bytes[sc->bufferLength], data, len);
|
|
||||||
|
|
||||||
sc->totalLength += len * 8L;
|
|
||||||
|
|
||||||
sc->bufferLength += len;
|
|
||||||
}
|
|
||||||
#else /* SHA1_FAST_COPY */
|
|
||||||
while (len) {
|
|
||||||
bufferBytesLeft = 64L - sc->bufferLength;
|
|
||||||
|
|
||||||
bytesToCopy = bufferBytesLeft;
|
|
||||||
if (bytesToCopy > len)
|
|
||||||
bytesToCopy = len;
|
|
||||||
|
|
||||||
memcpy (&sc->buffer.bytes[sc->bufferLength], data, bytesToCopy);
|
|
||||||
|
|
||||||
sc->totalLength += bytesToCopy * 8L;
|
|
||||||
|
|
||||||
sc->bufferLength += bytesToCopy;
|
|
||||||
data += bytesToCopy;
|
|
||||||
len -= bytesToCopy;
|
|
||||||
|
|
||||||
if (sc->bufferLength == 64L) {
|
|
||||||
SHA1Guts (sc, sc->buffer.words);
|
|
||||||
needBurn = 1;
|
|
||||||
sc->bufferLength = 0L;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif /* SHA1_FAST_COPY */
|
|
||||||
|
|
||||||
if (needBurn)
|
|
||||||
burnStack (sizeof (uint32_t[86]) + sizeof (uint32_t *[5]) + sizeof (int));
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
SHA1Final (SHA1Context *sc, uint8_t hash[SHA1_HASH_SIZE])
|
|
||||||
{
|
|
||||||
uint32_t bytesToPad;
|
|
||||||
uint64_t lengthPad;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
bytesToPad = 120L - sc->bufferLength;
|
|
||||||
if (bytesToPad > 64L)
|
|
||||||
bytesToPad -= 64L;
|
|
||||||
|
|
||||||
lengthPad = BYTESWAP64(sc->totalLength);
|
|
||||||
|
|
||||||
SHA1Update (sc, padding, bytesToPad);
|
|
||||||
SHA1Update (sc, &lengthPad, 8L);
|
|
||||||
|
|
||||||
if (hash) {
|
|
||||||
for (i = 0; i < SHA1_HASH_WORDS; i++) {
|
|
||||||
#ifdef SHA1_FAST_COPY
|
|
||||||
*((uint32_t *) hash) = BYTESWAP(sc->hash[i]);
|
|
||||||
#else /* SHA1_FAST_COPY */
|
|
||||||
hash[0] = (uint8_t) (sc->hash[i] >> 24);
|
|
||||||
hash[1] = (uint8_t) (sc->hash[i] >> 16);
|
|
||||||
hash[2] = (uint8_t) (sc->hash[i] >> 8);
|
|
||||||
hash[3] = (uint8_t) sc->hash[i];
|
|
||||||
#endif /* SHA1_FAST_COPY */
|
|
||||||
hash += 4;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef SHA1_TEST
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
int
|
|
||||||
main (int argc, char *argv[])
|
|
||||||
{
|
|
||||||
SHA1Context foo;
|
|
||||||
uint8_t hash[SHA1_HASH_SIZE];
|
|
||||||
char buf[1000];
|
|
||||||
int i;
|
|
||||||
|
|
||||||
SHA1Init (&foo);
|
|
||||||
SHA1Update (&foo, "abc", 3);
|
|
||||||
SHA1Final (&foo, hash);
|
|
||||||
|
|
||||||
for (i = 0; i < SHA1_HASH_SIZE;) {
|
|
||||||
printf ("%02x", hash[i++]);
|
|
||||||
if (!(i % 4))
|
|
||||||
printf (" ");
|
|
||||||
}
|
|
||||||
printf ("\n");
|
|
||||||
|
|
||||||
SHA1Init (&foo);
|
|
||||||
SHA1Update (&foo,
|
|
||||||
"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
|
|
||||||
56);
|
|
||||||
SHA1Final (&foo, hash);
|
|
||||||
|
|
||||||
for (i = 0; i < SHA1_HASH_SIZE;) {
|
|
||||||
printf ("%02x", hash[i++]);
|
|
||||||
if (!(i % 4))
|
|
||||||
printf (" ");
|
|
||||||
}
|
|
||||||
printf ("\n");
|
|
||||||
|
|
||||||
SHA1Init (&foo);
|
|
||||||
memset (buf, 'a', sizeof (buf));
|
|
||||||
for (i = 0; i < 1000; i++)
|
|
||||||
SHA1Update (&foo, buf, sizeof (buf));
|
|
||||||
SHA1Final (&foo, hash);
|
|
||||||
|
|
||||||
for (i = 0; i < SHA1_HASH_SIZE;) {
|
|
||||||
printf ("%02x", hash[i++]);
|
|
||||||
if (!(i % 4))
|
|
||||||
printf (" ");
|
|
||||||
}
|
|
||||||
printf ("\n");
|
|
||||||
|
|
||||||
exit (0);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* SHA1_TEST */
|
|
|
@ -1,86 +0,0 @@
|
||||||
/*-
|
|
||||||
* Copyright (c) 2001-2003 Allan Saddi <allan@saddi.com>
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions
|
|
||||||
* are met:
|
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY ALLAN SADDI AND HIS CONTRIBUTORS ``AS IS''
|
|
||||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
||||||
* ARE DISCLAIMED. IN NO EVENT SHALL ALLAN SADDI OR HIS CONTRIBUTORS BE
|
|
||||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
||||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
||||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
||||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
||||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
||||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*
|
|
||||||
* $Id: sha1.h 347 2003-02-23 22:11:49Z asaddi $
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _SHA1_H
|
|
||||||
#define _SHA1_H
|
|
||||||
|
|
||||||
#if HAVE_INTTYPES_H
|
|
||||||
# include <inttypes.h>
|
|
||||||
#else
|
|
||||||
# if HAVE_STDINT_H
|
|
||||||
# include <stdint.h>
|
|
||||||
# else
|
|
||||||
# ifndef uint32_t
|
|
||||||
# ifdef WIN32
|
|
||||||
typedef unsigned __int8 uint8_t;
|
|
||||||
typedef unsigned __int16 uint16_t;
|
|
||||||
typedef unsigned __int32 uint32_t;
|
|
||||||
typedef unsigned __int64 uint64_t;
|
|
||||||
typedef __int8 int8_t;
|
|
||||||
typedef __int16 int16_t;
|
|
||||||
typedef __int32 int32_t;
|
|
||||||
typedef __int64 int64_t;
|
|
||||||
typedef unsigned long in_addr_t;
|
|
||||||
# endif
|
|
||||||
# endif
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define SHA1_HASH_SIZE 20
|
|
||||||
|
|
||||||
/* Hash size in 32-bit words */
|
|
||||||
#define SHA1_HASH_WORDS 5
|
|
||||||
|
|
||||||
struct _SHA1Context {
|
|
||||||
uint64_t totalLength;
|
|
||||||
uint32_t hash[SHA1_HASH_WORDS];
|
|
||||||
uint32_t bufferLength;
|
|
||||||
union {
|
|
||||||
uint32_t words[16];
|
|
||||||
uint8_t bytes[64];
|
|
||||||
} buffer;
|
|
||||||
#ifdef RUNTIME_ENDIAN
|
|
||||||
int littleEndian;
|
|
||||||
#endif /* RUNTIME_ENDIAN */
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef struct _SHA1Context SHA1Context;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void SHA1Init (SHA1Context *sc);
|
|
||||||
void SHA1Update (SHA1Context *sc, const void *data, uint32_t len);
|
|
||||||
void SHA1Final (SHA1Context *sc, uint8_t hash[SHA1_HASH_SIZE]);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _SHA1_H */
|
|
|
@ -226,11 +226,6 @@
|
||||||
* mod_portaudio
|
* mod_portaudio
|
||||||
* - portaudio (http://www.portaudio.com/)
|
* - portaudio (http://www.portaudio.com/)
|
||||||
*
|
*
|
||||||
* mod_dingaling
|
|
||||||
* - libdingaling (internal library distributed with freeswitch which depends on)
|
|
||||||
* - APR (http://apr.apache.org)
|
|
||||||
* - iksemel (http://iksemel.jabberstudio.org/)
|
|
||||||
*
|
|
||||||
* mod_sofia
|
* mod_sofia
|
||||||
* - sofia-sip (http://opensource.nokia.com/projects/sofia-sip/)
|
* - sofia-sip (http://opensource.nokia.com/projects/sofia-sip/)
|
||||||
*
|
*
|
||||||
|
|
|
@ -10,7 +10,7 @@ check: $(OUR_CHECK_MODULES)
|
||||||
mod_skypopen-all: mod_gsmopen-all
|
mod_skypopen-all: mod_gsmopen-all
|
||||||
mod_gsmopen-all: mod_spandsp-all
|
mod_gsmopen-all: mod_spandsp-all
|
||||||
mod_unimrcp-all: mod_sofia-all
|
mod_unimrcp-all: mod_sofia-all
|
||||||
mod_rayo-all: mod_dingaling-all
|
mod_rayo-all: mod_ssml-all
|
||||||
mod_ssml-all: mod_rayo-all
|
mod_ssml-all: mod_rayo-all
|
||||||
|
|
||||||
$(OUR_MODULES) $(OUR_CLEAN_MODULES) $(OUR_INSTALL_MODULES) $(OUR_UNINSTALL_MODULES) $(OUR_DISABLED_MODULES) $(OUR_DISABLED_CLEAN_MODULES) $(OUR_DISABLED_INSTALL_MODULES) $(OUR_DISABLED_UNINSTALL_MODULES) $(OUR_TEST_MODULES) $(OUR_CHECK_MODULES):
|
$(OUR_MODULES) $(OUR_CLEAN_MODULES) $(OUR_INSTALL_MODULES) $(OUR_UNINSTALL_MODULES) $(OUR_DISABLED_MODULES) $(OUR_DISABLED_CLEAN_MODULES) $(OUR_DISABLED_INSTALL_MODULES) $(OUR_DISABLED_UNINSTALL_MODULES) $(OUR_TEST_MODULES) $(OUR_CHECK_MODULES):
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
include $(top_srcdir)/build/modmake.rulesam
|
|
||||||
MODNAME=mod_dingaling
|
|
||||||
IKS_DIR=$(switch_srcdir)/libs/iksemel
|
|
||||||
IKS_BUILDDIR=$(switch_builddir)/libs/iksemel
|
|
||||||
IKS_LA=$(IKS_BUILDDIR)/src/libiksemel.la
|
|
||||||
DING_DIR=$(switch_srcdir)/libs/libdingaling
|
|
||||||
DING_BUILDDIR=$(switch_builddir)/libs/libdingaling
|
|
||||||
|
|
||||||
mod_LTLIBRARIES = mod_dingaling.la
|
|
||||||
mod_dingaling_la_SOURCES = mod_dingaling.c ../../../../libs/libdingaling/src/libdingaling.c ../../../../libs/libdingaling/src/sha1.c
|
|
||||||
mod_dingaling_la_CFLAGS = $(AM_CFLAGS)
|
|
||||||
mod_dingaling_la_CFLAGS += `$(switch_builddir)/libs/apr/apr-1-config --cflags --cppflags --includes`
|
|
||||||
mod_dingaling_la_CFLAGS += `$(switch_builddir)/libs/apr-util/apu-1-config --includes`
|
|
||||||
mod_dingaling_la_CFLAGS += -I$(DING_DIR)/src -I$(DING_BUILDDIR)/src -I$(IKS_DIR)/include
|
|
||||||
mod_dingaling_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(IKS_LA)
|
|
||||||
mod_dingaling_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
|
||||||
|
|
||||||
BUILT_SOURCES=$(IKS_LA)
|
|
||||||
|
|
||||||
$(IKS_LA): $(IKS_BUILDDIR) $(IKS_DIR) $(IKS_DIR)/.update
|
|
||||||
@cd $(IKS_BUILDDIR) && $(MAKE)
|
|
||||||
@$(TOUCH_TARGET)
|
|
||||||
|
|
||||||
deps: $(IKS_LA)
|
|
|
@ -1,165 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
|
||||||
<ProjectConfiguration Include="Debug|Win32">
|
|
||||||
<Configuration>Debug</Configuration>
|
|
||||||
<Platform>Win32</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Debug|x64">
|
|
||||||
<Configuration>Debug</Configuration>
|
|
||||||
<Platform>x64</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Release|Win32">
|
|
||||||
<Configuration>Release</Configuration>
|
|
||||||
<Platform>Win32</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Release|x64">
|
|
||||||
<Configuration>Release</Configuration>
|
|
||||||
<Platform>x64</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
</ItemGroup>
|
|
||||||
<PropertyGroup Label="Globals">
|
|
||||||
<ProjectName>mod_dingaling</ProjectName>
|
|
||||||
<ProjectGuid>{FFAA4C52-3A53-4F99-90C1-D59D1F0427F3}</ProjectGuid>
|
|
||||||
<RootNamespace>mod_dingaling</RootNamespace>
|
|
||||||
<Keyword>Win32Proj</Keyword>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
||||||
<CharacterSet>MultiByte</CharacterSet>
|
|
||||||
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
||||||
<CharacterSet>MultiByte</CharacterSet>
|
|
||||||
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
||||||
<CharacterSet>MultiByte</CharacterSet>
|
|
||||||
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
||||||
<CharacterSet>MultiByte</CharacterSet>
|
|
||||||
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
||||||
<Import Project="..\..\..\..\w32\openssl.props" />
|
|
||||||
<ImportGroup Label="ExtensionSettings">
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
<Import Project="..\..\..\..\w32\module_release.props" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
<Import Project="..\..\..\..\w32\module_debug.props" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
<Import Project="..\..\..\..\w32\module_release.props" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
<Import Project="..\..\..\..\w32\module_debug.props" />
|
|
||||||
</ImportGroup>
|
|
||||||
<PropertyGroup Label="UserMacros" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<ClCompile>
|
|
||||||
<AdditionalIncludeDirectories>%(RootDir)%(Directory)..\..\..\..\libs\libdingaling\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
<PrecompiledHeader>
|
|
||||||
</PrecompiledHeader>
|
|
||||||
<DisableSpecificWarnings>4718;6340;6246;6011;6387;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<AdditionalOptions>/NODEFAULTLIB:LIMBCTD %(AdditionalOptions)</AdditionalOptions>
|
|
||||||
<AdditionalLibraryDirectories>$(ProjectDir)..\..\..\..\libs\libdingaling\$(OutDir);$(ProjectDir)..\..\..\..\libs\iksemel\$(OutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
||||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
|
||||||
<DataExecutionPrevention>
|
|
||||||
</DataExecutionPrevention>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
||||||
<Midl>
|
|
||||||
<TargetEnvironment>X64</TargetEnvironment>
|
|
||||||
</Midl>
|
|
||||||
<ClCompile>
|
|
||||||
<AdditionalIncludeDirectories>%(RootDir)%(Directory)..\..\..\..\libs\libdingaling\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
<PrecompiledHeader>
|
|
||||||
</PrecompiledHeader>
|
|
||||||
<DisableSpecificWarnings>4718;6340;6246;6011;6387;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<AdditionalOptions>/NODEFAULTLIB:LIMBCTD %(AdditionalOptions)</AdditionalOptions>
|
|
||||||
<AdditionalLibraryDirectories>$(ProjectDir)..\..\..\..\libs\libdingaling\$(OutDir);$(ProjectDir)..\..\..\..\libs\iksemel\$(OutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
||||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
|
||||||
<DataExecutionPrevention>
|
|
||||||
</DataExecutionPrevention>
|
|
||||||
<TargetMachine>MachineX64</TargetMachine>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<ClCompile>
|
|
||||||
<AdditionalIncludeDirectories>%(RootDir)%(Directory)..\..\..\..\libs\libdingaling\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
<PrecompiledHeader>
|
|
||||||
</PrecompiledHeader>
|
|
||||||
<DisableSpecificWarnings>4718;6340;6246;6011;6387;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<AdditionalLibraryDirectories>$(ProjectDir)..\..\..\..\libs\libdingaling\$(OutDir);$(ProjectDir)..\..\..\..\libs\iksemel\$(OutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
||||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
|
||||||
<DataExecutionPrevention>
|
|
||||||
</DataExecutionPrevention>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
||||||
<Midl>
|
|
||||||
<TargetEnvironment>X64</TargetEnvironment>
|
|
||||||
</Midl>
|
|
||||||
<ClCompile>
|
|
||||||
<AdditionalIncludeDirectories>%(RootDir)%(Directory)..\..\..\..\libs\libdingaling\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
||||||
<PrecompiledHeader>
|
|
||||||
</PrecompiledHeader>
|
|
||||||
<DisableSpecificWarnings>4718;6340;6246;6011;6387;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<AdditionalLibraryDirectories>$(ProjectDir)..\..\..\..\libs\libdingaling\$(OutDir);$(ProjectDir)..\..\..\..\libs\iksemel\$(OutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
||||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
|
||||||
<DataExecutionPrevention>
|
|
||||||
</DataExecutionPrevention>
|
|
||||||
<TargetMachine>MachineX64</TargetMachine>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="mod_dingaling.c" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\..\..\..\libs\libdingaling\libdingaling.2017.vcxproj">
|
|
||||||
<Project>{1906d736-08bd-4ee1-924f-b536249b9a54}</Project>
|
|
||||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\..\..\..\libs\win32\apr-util\libaprutil.2017.vcxproj">
|
|
||||||
<Project>{f057da7f-79e5-4b00-845c-ef446ef055e3}</Project>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\..\..\..\libs\win32\apr\libapr.2017.vcxproj">
|
|
||||||
<Project>{f6c55d93-b927-4483-bb69-15aef3dd2dff}</Project>
|
|
||||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\..\..\..\libs\win32\iksemel\iksemel.2017.vcxproj">
|
|
||||||
<Project>{e727e8f6-935d-46fe-8b0e-37834748a0e3}</Project>
|
|
||||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\..\..\..\w32\Library\FreeSwitchCore.2017.vcxproj">
|
|
||||||
<Project>{202d7a4e-760d-4d0e-afa1-d7459ced30ff}</Project>
|
|
||||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
||||||
<ImportGroup Label="ExtensionTargets">
|
|
||||||
</ImportGroup>
|
|
||||||
</Project>
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue