Blame


1 e1d9a703 2011-04-21 pbug #!/bin/sh
2 38a1bdd7 2010-03-10 pbug
3 187cc902 2011-04-22 pbug
4 187cc902 2011-04-22 pbug echo "/* config.h - autogenerated by configure */" > config.h
5 187cc902 2011-04-22 pbug
6 bca69f48 2011-04-21 mjbrune until [ -z $1 ]
7 bca69f48 2011-04-21 mjbrune do
8 bca69f48 2011-04-21 mjbrune case $1 in
9 bca69f48 2011-04-21 mjbrune --user=*)
10 187cc902 2011-04-22 pbug user=`echo $1 | sed -e 's/--user=//g'`
11 bca69f48 2011-04-21 mjbrune echo "#define DEFAULT_PRIVILEGE \"$user\"" >> config.h
12 bca69f48 2011-04-21 mjbrune ;;
13 bca69f48 2011-04-21 mjbrune *)
14 187cc902 2011-04-22 pbug echo "usage: configure [--user=USERNAME]"
15 bca69f48 2011-04-21 mjbrune exit
16 bca69f48 2011-04-21 mjbrune ;;
17 bca69f48 2011-04-21 mjbrune esac
18 bca69f48 2011-04-21 mjbrune shift
19 bca69f48 2011-04-21 mjbrune done
20 38a1bdd7 2010-03-10 pbug
21 e1640064 2011-04-23 pbug openbsd() {
22 e1640064 2011-04-23 pbug echo configuring for OpenBSD
23 e1640064 2011-04-23 pbug cp Makefile.openbsd Makefile
24 38a1bdd7 2010-03-10 pbug }
25 38a1bdd7 2010-03-10 pbug
26 e1640064 2011-04-23 pbug netbsd() {
27 e1640064 2011-04-23 pbug echo configuring for NetBSD
28 e1640064 2011-04-23 pbug cp Makefile.netbsd Makefile
29 e1640064 2011-04-23 pbug }
30 e1640064 2011-04-23 pbug
31 e1d9a703 2011-04-21 pbug freebsd() {
32 ed3a10c5 2011-04-13 pbug echo configuring for FreeBSD
33 98303f73 2014-04-13 pjp cp Makefile.freebsd Makefile
34 ed3a10c5 2011-04-13 pbug }
35 ed3a10c5 2011-04-13 pbug
36 e1d9a703 2011-04-21 pbug linux() {
37 38a1bdd7 2010-03-10 pbug echo configuring for Linux
38 38a1bdd7 2010-03-10 pbug cp Makefile.linux Makefile
39 fedd844f 2014-09-27 pjp
40 fedd844f 2014-09-27 pjp # libressl
41 fedd844f 2014-09-27 pjp
42 d7791c24 2014-11-07 pjp if [ ! -d ../libressl-2.1.1 ] ; then
43 d7791c24 2014-11-07 pjp echo Please install libressl-2.1.1 in the directory before this one!
44 fedd844f 2014-09-27 pjp echo You can get it from http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/
45 fedd844f 2014-09-27 pjp echo "Please extract it and ./configure && make check, this will not "
46 fedd844f 2014-09-27 pjp echo install it into your system only into that directory.
47 fedd844f 2014-09-27 pjp echo
48 fedd844f 2014-09-27 pjp echo Due to Linux distros not supporting libressl yet, we have to
49 fedd844f 2014-09-27 pjp echo make it this way, hopeing for someone making inroads one day!
50 fedd844f 2014-09-27 pjp echo cleaning up...
51 fedd844f 2014-09-27 pjp rm -f Makefile
52 fedd844f 2014-09-27 pjp exit 1
53 fedd844f 2014-09-27 pjp else
54 fedd844f 2014-09-27 pjp echo Now making a symlink for libcrypto and libssl...
55 d7791c24 2014-11-07 pjp ln -s ../libressl-2.1.1/crypto/.libs/libcrypto.a libressllibcrypto.a
56 d7791c24 2014-11-07 pjp ln -s ../libressl-2.1.1/crypto/.libs/libcompat.a libressllibcompat.a
57 d7791c24 2014-11-07 pjp ln -s ../libressl-2.1.1/ssl/.libs/libssl.a libressllibssl.a
58 d7791c24 2014-11-07 pjp ln -s ../libressl-2.1.1/crypto/.libs/libcompatnoopt.a libressllibcompatnoopt.a
59 fedd844f 2014-09-27 pjp echo done.
60 fedd844f 2014-09-27 pjp fi
61 38a1bdd7 2010-03-10 pbug }
62 38a1bdd7 2010-03-10 pbug
63 e1d9a703 2011-04-21 pbug darwin() {
64 0a03802b 2010-04-05 pbug echo configuring for Darwin
65 0a03802b 2010-04-05 pbug cp Makefile.macosx Makefile
66 0a03802b 2010-04-05 pbug }
67 38a1bdd7 2010-03-10 pbug
68 0a03802b 2010-04-05 pbug
69 38a1bdd7 2010-03-10 pbug case "`uname -s`" in
70 0a03802b 2010-04-05 pbug Darwin)
71 0a03802b 2010-04-05 pbug darwin;
72 0a03802b 2010-04-05 pbug ;;
73 38a1bdd7 2010-03-10 pbug OpenBSD)
74 e1640064 2011-04-23 pbug openbsd;
75 38a1bdd7 2010-03-10 pbug ;;
76 38a1bdd7 2010-03-10 pbug FreeBSD)
77 ed3a10c5 2011-04-13 pbug freebsd
78 38a1bdd7 2010-03-10 pbug ;;
79 38a1bdd7 2010-03-10 pbug NetBSD)
80 e1640064 2011-04-23 pbug netbsd;
81 38a1bdd7 2010-03-10 pbug ;;
82 38a1bdd7 2010-03-10 pbug Linux)
83 38a1bdd7 2010-03-10 pbug linux
84 38a1bdd7 2010-03-10 pbug ;;
85 38a1bdd7 2010-03-10 pbug esac
86 38a1bdd7 2010-03-10 pbug
87 38a1bdd7 2010-03-10 pbug echo done. Type make to make programs.