2001-08-30 16:09:10 +02:00
|
|
|
#!/bin/sh -e
|
1994-11-25 20:13:56 +01:00
|
|
|
#
|
2000-01-22 19:03:39 +01:00
|
|
|
# pre-configure script for Elm port to FreeBSD
|
2001-01-31 18:16:07 +01:00
|
|
|
#
|
1999-08-30 14:09:14 +02:00
|
|
|
# $FreeBSD$
|
1994-11-25 20:13:56 +01:00
|
|
|
|
2001-01-31 18:16:07 +01:00
|
|
|
[ -r /usr/include/inttypes.h ] && has_inttypes=define || has_inttypes=undef
|
2006-04-07 15:06:54 +02:00
|
|
|
cpp /usr/include/wchar.h | grep mbrlen && has_wchar=define || has_wchar=undef
|
2000-01-22 19:03:39 +01:00
|
|
|
|
2001-08-30 16:09:10 +02:00
|
|
|
d_shared_rev=${SO_REV:-$(awk '/SHAREDTAG:/{print $2}' ${WRKSRC}/hdrs/patchlevel.h)}
|
|
|
|
|
2001-05-27 14:56:05 +02:00
|
|
|
[ -d ${WRKSRC}/shlib ] || mkdir ${WRKSRC}/shlib
|
|
|
|
|
2001-11-02 00:07:24 +01:00
|
|
|
case ${CFLAGS} in
|
|
|
|
*-g*) DEBUG="-DDEBUG" ;;
|
|
|
|
*) DEBUG= ;;
|
|
|
|
esac
|
|
|
|
|
2004-07-12 14:27:05 +02:00
|
|
|
cat >> ${CONFIG_PATH} << EOF
|
1994-11-25 20:13:56 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# config.sh
|
2004-07-12 14:27:05 +02:00
|
|
|
# This file was produced by running the $0 script.
|
1994-11-25 20:13:56 +01:00
|
|
|
|
2000-01-22 19:03:39 +01:00
|
|
|
Log='\$Log'
|
|
|
|
Header='\$Header'
|
2001-01-31 18:16:07 +01:00
|
|
|
install_prefix='${PREFIX}'
|
|
|
|
bin='${PREFIX}/bin'
|
1994-11-25 20:13:56 +01:00
|
|
|
contains='grep'
|
|
|
|
cppstdin='/usr/bin/cpp'
|
|
|
|
cppminus=''
|
2001-11-02 00:07:24 +01:00
|
|
|
diff='/usr/bin/diff'
|
1994-11-25 20:13:56 +01:00
|
|
|
d_getopt='define'
|
|
|
|
d_memcpy='define'
|
|
|
|
d_symlink='define'
|
|
|
|
d_whoami='undef'
|
1999-04-07 20:28:40 +02:00
|
|
|
d_poll='define'
|
2000-01-22 14:34:04 +01:00
|
|
|
d_select='define'
|
2000-08-14 15:27:17 +02:00
|
|
|
i_sys_select='define'
|
1999-09-08 20:10:47 +02:00
|
|
|
d_mmap='define'
|
2013-01-13 12:38:32 +01:00
|
|
|
i_sys_socket='define'
|
2000-08-14 15:27:17 +02:00
|
|
|
d_connect_reopen='undef'
|
2013-01-13 12:38:32 +01:00
|
|
|
i_netdb='define'
|
|
|
|
i_netinet_in='define'
|
|
|
|
i_arpa_inet='define'
|
2001-05-27 14:56:05 +02:00
|
|
|
d_use_aton='define'
|
2013-01-13 12:38:32 +01:00
|
|
|
i_inttypes='${has_inttypes}'
|
1996-12-23 07:08:21 +01:00
|
|
|
d_nointtypes='undef'
|
1994-11-25 20:13:56 +01:00
|
|
|
n='-n'
|
|
|
|
c=''
|
|
|
|
orderlib='false'
|
1999-09-08 20:10:47 +02:00
|
|
|
ranlib=':'
|
2006-04-07 15:06:54 +02:00
|
|
|
ar='ar'
|
|
|
|
nm='nm'
|
2001-01-31 18:16:07 +01:00
|
|
|
package='elm2.4me+'
|
1995-09-28 17:41:56 +01:00
|
|
|
pager='builtin++'
|
2004-07-12 14:27:05 +02:00
|
|
|
use_builtin_pager='define'
|
1994-11-25 20:13:56 +01:00
|
|
|
startsh='#!/bin/sh'
|
|
|
|
define='define'
|
|
|
|
loclist='
|
2002-05-10 02:41:58 +02:00
|
|
|
basename
|
1994-11-25 20:13:56 +01:00
|
|
|
cat
|
|
|
|
chgrp
|
|
|
|
chmod
|
|
|
|
cp
|
2000-01-22 14:34:04 +01:00
|
|
|
dirname
|
1994-11-25 20:13:56 +01:00
|
|
|
echo
|
|
|
|
expr
|
2000-01-22 14:34:04 +01:00
|
|
|
egrep
|
1994-11-25 20:13:56 +01:00
|
|
|
grep
|
1999-09-08 20:10:47 +02:00
|
|
|
fgrep
|
|
|
|
head
|
1994-11-25 20:13:56 +01:00
|
|
|
ln
|
|
|
|
ls
|
|
|
|
make
|
|
|
|
mv
|
|
|
|
rm
|
|
|
|
sed
|
|
|
|
sleep
|
2001-11-02 00:07:24 +01:00
|
|
|
sort
|
|
|
|
diff
|
1994-11-25 20:13:56 +01:00
|
|
|
touch
|
|
|
|
tr
|
2001-11-02 00:07:24 +01:00
|
|
|
uniq
|
1999-09-08 20:10:47 +02:00
|
|
|
cut
|
1994-11-25 20:13:56 +01:00
|
|
|
'
|
|
|
|
expr='/bin/expr'
|
|
|
|
sed='/usr/bin/sed'
|
|
|
|
echo='/bin/echo'
|
|
|
|
cat='/bin/cat'
|
|
|
|
rm='/bin/rm'
|
|
|
|
mv='/bin/mv'
|
|
|
|
cp='/bin/cp'
|
|
|
|
tail=''
|
|
|
|
tr='/usr/bin/tr'
|
2002-05-10 02:41:58 +02:00
|
|
|
sort='/usr/bin/sort'
|
|
|
|
uniq='/usr/bin/uniq'
|
1994-11-25 20:13:56 +01:00
|
|
|
grep='/usr/bin/grep'
|
1999-09-08 20:10:47 +02:00
|
|
|
fgrep='/usr/bin/fgrep'
|
|
|
|
head='/usr/bin/head'
|
1994-11-25 20:13:56 +01:00
|
|
|
trylist='
|
|
|
|
Mcc
|
|
|
|
compress
|
|
|
|
cpp
|
|
|
|
date
|
2002-05-10 02:41:58 +02:00
|
|
|
diff
|
1994-11-25 20:13:56 +01:00
|
|
|
emacs
|
|
|
|
execmail
|
2004-08-29 22:37:58 +02:00
|
|
|
gencat
|
2000-01-22 14:34:04 +01:00
|
|
|
gpg
|
1994-11-25 20:13:56 +01:00
|
|
|
ispell
|
|
|
|
line
|
|
|
|
lint
|
|
|
|
lp
|
1999-04-07 20:28:40 +02:00
|
|
|
locale
|
1994-11-25 20:13:56 +01:00
|
|
|
lpr
|
1996-02-26 01:57:32 +01:00
|
|
|
metamail
|
1994-11-25 20:13:56 +01:00
|
|
|
mips
|
|
|
|
more
|
|
|
|
nroff
|
|
|
|
pack
|
|
|
|
pg
|
1995-09-28 17:41:56 +01:00
|
|
|
pgp
|
1994-11-25 20:13:56 +01:00
|
|
|
pmake
|
|
|
|
pr
|
|
|
|
rmail
|
|
|
|
sendmail
|
|
|
|
shar
|
|
|
|
smail
|
|
|
|
submit
|
|
|
|
tar
|
|
|
|
tbl
|
|
|
|
test
|
|
|
|
troff
|
2001-01-31 18:16:07 +01:00
|
|
|
gtroff
|
1994-11-25 20:13:56 +01:00
|
|
|
uname
|
|
|
|
uuname
|
|
|
|
vi
|
|
|
|
'
|
2002-05-10 02:41:58 +02:00
|
|
|
test='test'
|
1994-11-25 20:13:56 +01:00
|
|
|
inews=''
|
2001-08-30 16:09:10 +02:00
|
|
|
ispell='${LOCALBASE}/bin/ispell'
|
2000-01-22 14:34:04 +01:00
|
|
|
egrep='/usr/bin/egrep'
|
1994-11-25 20:13:56 +01:00
|
|
|
more='/usr/bin/more'
|
|
|
|
pg='pg'
|
|
|
|
Mcc='Mcc'
|
|
|
|
vi='/usr/bin/vi'
|
2002-05-10 02:41:58 +02:00
|
|
|
mailx=''
|
1994-11-25 20:13:56 +01:00
|
|
|
mail=''
|
|
|
|
cpp='/usr/bin/cpp'
|
|
|
|
perl=''
|
2001-08-30 16:09:10 +02:00
|
|
|
emacs='${LOCALBASE}/bin/emacs'
|
1994-11-25 20:13:56 +01:00
|
|
|
ls='/bin/ls'
|
|
|
|
rmail='/bin/rmail'
|
|
|
|
sendmail='/usr/sbin/sendmail'
|
|
|
|
shar='/usr/bin/shar'
|
|
|
|
smail='smail'
|
|
|
|
submit=''
|
|
|
|
tbl='/usr/bin/tbl'
|
|
|
|
troff='/usr/bin/troff'
|
|
|
|
nroff='/usr/bin/nroff'
|
|
|
|
uname='/usr/bin/uname'
|
|
|
|
uuname='/usr/bin/uuname'
|
|
|
|
line='line'
|
|
|
|
chgrp='/usr/bin/chgrp'
|
|
|
|
chmod='/bin/chmod'
|
1996-10-03 21:08:13 +02:00
|
|
|
lint='/usr/bin/lint'
|
1994-11-25 20:13:56 +01:00
|
|
|
sleep='/bin/sleep'
|
|
|
|
pr='/usr/bin/pr'
|
|
|
|
tar='/usr/bin/tar'
|
|
|
|
ln='/bin/ln'
|
|
|
|
lpr='/usr/bin/lpr'
|
1995-05-12 23:47:02 +02:00
|
|
|
lp='/usr/bin/lp'
|
1994-11-25 20:13:56 +01:00
|
|
|
touch='/usr/bin/touch'
|
|
|
|
make='/usr/bin/make'
|
2002-05-10 02:41:58 +02:00
|
|
|
make_sets_make='define'
|
1994-11-25 20:13:56 +01:00
|
|
|
date='/bin/date'
|
|
|
|
csh=''
|
|
|
|
pmake='pmake'
|
|
|
|
mips='false'
|
|
|
|
col=''
|
|
|
|
pack='pack'
|
|
|
|
compress='/usr/bin/compress'
|
|
|
|
execmail=''
|
2004-08-29 22:37:58 +02:00
|
|
|
gencat='/usr/bin/gencat'
|
2000-05-24 12:26:11 +02:00
|
|
|
libswanted='sun nls c_s'
|
1996-06-21 00:23:48 +02:00
|
|
|
noaddlib='yes'
|
2004-08-29 22:37:58 +02:00
|
|
|
c_date='Tue Aug 24 15:05:52 CEST 2004'
|
1994-11-25 20:13:56 +01:00
|
|
|
d_ascii='undef'
|
|
|
|
d_broke_ctype='undef'
|
|
|
|
d_calendar='define'
|
|
|
|
calendar='calendar'
|
|
|
|
d_chown_neg1='define'
|
|
|
|
d_content='undef'
|
|
|
|
d_crypt='define'
|
1996-02-26 01:57:32 +01:00
|
|
|
cryptlib='-lcrypt'
|
1994-11-25 20:13:56 +01:00
|
|
|
d_cuserid='undef'
|
2001-01-31 18:16:07 +01:00
|
|
|
d_disphost='define'
|
1994-11-25 20:13:56 +01:00
|
|
|
d_domname='define'
|
|
|
|
d_usegetdom='undef'
|
|
|
|
d_errlst='define'
|
|
|
|
d_flock='define'
|
2000-01-22 14:34:04 +01:00
|
|
|
d_dotlock='define'
|
1994-11-25 20:13:56 +01:00
|
|
|
d_fcntlock='undef'
|
|
|
|
has_flock='define'
|
|
|
|
has_fcntl='define'
|
|
|
|
d_ftruncate='define'
|
|
|
|
d_gethname='define'
|
|
|
|
d_douname='undef'
|
2001-01-31 18:16:07 +01:00
|
|
|
ign_hname=''
|
1994-11-25 20:13:56 +01:00
|
|
|
d_havetlib='define'
|
|
|
|
termlib='-ltermlib'
|
2001-01-31 18:16:07 +01:00
|
|
|
i_curses='undef'
|
|
|
|
i_term='define'
|
1994-11-25 20:13:56 +01:00
|
|
|
d_index='undef'
|
2001-01-31 18:16:07 +01:00
|
|
|
d_internet=''
|
1995-12-20 00:46:18 +01:00
|
|
|
d_ispell='define'
|
2001-08-30 16:09:10 +02:00
|
|
|
ispell_path='${LOCALBASE}/bin/ispell'
|
2001-01-31 18:16:07 +01:00
|
|
|
ispell_options='-x'
|
2013-01-13 12:38:32 +01:00
|
|
|
i_locale='define'
|
|
|
|
i_nl_types='define'
|
1995-05-12 23:47:02 +02:00
|
|
|
d_msgcat='define'
|
2001-01-31 18:16:07 +01:00
|
|
|
d_usenls=''
|
1994-11-25 20:13:56 +01:00
|
|
|
d_mallocvoid='define'
|
1996-02-23 02:45:05 +01:00
|
|
|
d_mboxedit='define'
|
2001-08-30 16:09:10 +02:00
|
|
|
metamail_path='${LOCALBASE}/bin/metamail'
|
1996-02-26 01:57:32 +01:00
|
|
|
d_8bitmime='define'
|
1995-11-19 22:11:57 +01:00
|
|
|
d_binarymime='undef'
|
1996-10-25 02:31:11 +02:00
|
|
|
d_dsn='define'
|
2000-08-14 15:27:17 +02:00
|
|
|
defsystemcharset='US-ASCII'
|
1994-11-25 20:13:56 +01:00
|
|
|
d_mmdf='undef'
|
|
|
|
d_newauto='define'
|
|
|
|
d_noaddfrom='define'
|
|
|
|
d_usedomain='undef'
|
|
|
|
d_noxheader='undef'
|
|
|
|
d_pidcheck='define'
|
|
|
|
d_ptem='undef'
|
|
|
|
d_putenv='define'
|
|
|
|
maxattempts='6'
|
2000-01-24 14:57:32 +01:00
|
|
|
d_setgid='define'
|
|
|
|
mailermode='2755'
|
1994-11-25 20:13:56 +01:00
|
|
|
d_sigvec='undef'
|
|
|
|
d_sigvectr='undef'
|
|
|
|
d_sigset='undef'
|
|
|
|
d_sighold='undef'
|
|
|
|
d_sigprocmask='define'
|
|
|
|
d_sigblock='undef'
|
1996-12-23 07:08:21 +01:00
|
|
|
d_waitpid='define'
|
1994-11-25 20:13:56 +01:00
|
|
|
d_sigaction='define'
|
|
|
|
d_strcspn='define'
|
|
|
|
d_strspn='define'
|
|
|
|
d_strpbrk='define'
|
|
|
|
d_strerror='define'
|
|
|
|
d_strftime='define'
|
|
|
|
d_strings='undef'
|
|
|
|
d_pwdinsys='undef'
|
|
|
|
strings='/usr/include/string.h'
|
|
|
|
includepath=''
|
|
|
|
d_strstr='define'
|
|
|
|
d_strtok='define'
|
|
|
|
d_subshell='define'
|
|
|
|
d_tempnam='define'
|
2001-05-27 14:56:05 +02:00
|
|
|
d_setlinebuf='define'
|
|
|
|
d_shared='define'
|
2001-08-30 16:09:10 +02:00
|
|
|
d_shared_rev='${d_shared_rev}'
|
2001-05-27 14:56:05 +02:00
|
|
|
d_dlopen_libs='define'
|
2004-07-12 14:27:05 +02:00
|
|
|
shared_list='${ELM_SHLIBS}'
|
|
|
|
shared_register='${ELM_SHLIBS}'
|
2001-05-27 14:56:05 +02:00
|
|
|
d_dynamic_main='define'
|
|
|
|
dynamic_opt='-rdynamic'
|
|
|
|
dlopen_lib=''
|
|
|
|
rpath_opt='-rpath '
|
2011-06-21 13:51:36 +02:00
|
|
|
soname_opt='-shared -Wl,-soname,'
|
2002-05-10 02:41:58 +02:00
|
|
|
soname_include_path='define'
|
1994-11-25 20:13:56 +01:00
|
|
|
tempnamo=''
|
|
|
|
tempnamc=''
|
|
|
|
d_termio='undef'
|
|
|
|
d_termios='define'
|
|
|
|
d_utimbuf='define'
|
|
|
|
d_vfork='define'
|
2001-01-31 18:16:07 +01:00
|
|
|
d_directory='define'
|
|
|
|
d_directyry_type='USE_DIRENT'
|
1994-11-25 20:13:56 +01:00
|
|
|
defbatsub='no subject (file transmission)'
|
|
|
|
defeditor='/usr/bin/vi'
|
|
|
|
editoropts=''
|
2002-05-10 02:41:58 +02:00
|
|
|
hostname='localhost'
|
1994-11-25 20:13:56 +01:00
|
|
|
phostname='hostname'
|
2002-05-10 02:41:58 +02:00
|
|
|
mydomain='.invalid'
|
1994-11-25 20:13:56 +01:00
|
|
|
autohostname='define'
|
|
|
|
i_memory='define'
|
|
|
|
i_time='define'
|
|
|
|
i_systime='define'
|
|
|
|
d_systimekernel='undef'
|
|
|
|
i_unistd='define'
|
|
|
|
i_utime='define'
|
|
|
|
i_sysutime='undef'
|
2004-07-12 14:27:05 +02:00
|
|
|
lib='${LIB_DIR}'
|
|
|
|
shlib='${SHLIB_DIR}'
|
|
|
|
etc='${CONF_DIR}'
|
|
|
|
stage_dir='${STAGE_DIR}'
|
|
|
|
build_package='undef'
|
2001-05-27 14:56:05 +02:00
|
|
|
libdirname='lib'
|
1999-04-07 20:28:40 +02:00
|
|
|
libc='/usr/lib/libc.so'
|
1995-09-28 17:41:56 +01:00
|
|
|
linepr='/usr/bin/lp'
|
1994-11-25 20:13:56 +01:00
|
|
|
maildir='/var/mail'
|
|
|
|
mailer='/usr/sbin/sendmail'
|
1999-09-08 20:10:47 +02:00
|
|
|
mailgrp='mail'
|
2001-05-27 14:56:05 +02:00
|
|
|
mansrc='${MAN1PREFIX}/man/man1'
|
|
|
|
catmansrc='${MAN1PREFIX}/man/cat1'
|
1994-11-25 20:13:56 +01:00
|
|
|
manext='.1'
|
|
|
|
manext_choice='.1'
|
|
|
|
catmanext='.1'
|
|
|
|
catmanext_choice='.1'
|
|
|
|
packed='n'
|
|
|
|
manroff='/usr/bin/nroff'
|
|
|
|
manroffopts=''
|
|
|
|
suffix=''
|
|
|
|
packer=''
|
2001-01-31 18:16:07 +01:00
|
|
|
optimize='${CFLAGS}'
|
2001-11-02 00:07:24 +01:00
|
|
|
ccflags='${DEBUG}'
|
2002-05-10 22:30:14 +02:00
|
|
|
picflag='-fPIC'
|
|
|
|
nopic=''
|
|
|
|
shared_extra=''
|
1994-11-25 20:13:56 +01:00
|
|
|
cppflags=''
|
1996-01-12 02:54:50 +01:00
|
|
|
ldflags='-s'
|
2011-07-25 20:07:13 +02:00
|
|
|
cc='${CC}'
|
1994-11-25 20:13:56 +01:00
|
|
|
libs=''
|
|
|
|
nametype='bsd'
|
|
|
|
d_passnames='define'
|
|
|
|
d_berknames='define'
|
|
|
|
d_usgnames='undef'
|
1999-09-08 20:10:47 +02:00
|
|
|
# passcat=''
|
1994-11-25 20:13:56 +01:00
|
|
|
rmttape='unknown-remote-tape-unit'
|
|
|
|
roff='/usr/bin/troff'
|
|
|
|
roffopts=''
|
|
|
|
sigtype='void'
|
|
|
|
spitshell='cat'
|
|
|
|
shsharp='true'
|
|
|
|
sharpbang='#!'
|
|
|
|
tmpdir='/tmp'
|
|
|
|
tzname_handling='TM_ZONE'
|
|
|
|
use_pmake='n'
|
|
|
|
xencf=''
|
|
|
|
xenlf=''
|
|
|
|
d_xenix='undef'
|
|
|
|
d_bsd='define'
|
1999-09-08 20:10:47 +02:00
|
|
|
locale='locale'
|
2005-07-07 23:38:02 +02:00
|
|
|
have_codeset='define'
|
1995-12-20 00:46:18 +01:00
|
|
|
d_pgp='define'
|
2001-08-30 16:09:10 +02:00
|
|
|
pgp='${LOCALBASE}/bin/pgp'
|
|
|
|
pgp2_path='${LOCALBASE}/bin/pgp'
|
|
|
|
pgp5_dir='${LOCALBASE}/bin'
|
|
|
|
gpg_path='${LOCALBASE}/bin/gpg'
|
2001-01-31 18:16:07 +01:00
|
|
|
special_path='/usr/bin'
|
|
|
|
special_path2='${PREFIX}/bin'
|
2000-05-24 12:26:11 +02:00
|
|
|
locale_dir='/usr/share/locale'
|
2006-04-07 15:06:54 +02:00
|
|
|
d_wchar='${has_wchar}'
|
|
|
|
d_wcwidth='${has_wchar}'
|
1994-11-25 20:13:56 +01:00
|
|
|
CONFIG=true
|
2001-05-27 14:56:05 +02:00
|
|
|
EOF
|
|
|
|
|
2004-07-12 14:27:05 +02:00
|
|
|
tee -a ${CONFIG_PATH} >> ${WRKSRC}/shared_libs/iconv/config.res << EOF
|
2013-09-11 21:32:19 +02:00
|
|
|
iconv_dir='${ICONV_PREFIX}'
|
|
|
|
iconv_include_dir='${ICONV_PREFIX}/include'
|
|
|
|
iconv_lib_dir='${ICONV_PREFIX}/lib'
|
|
|
|
iconv_link='${ICONV_LINK}'
|
2001-08-30 16:09:10 +02:00
|
|
|
EOF
|
|
|
|
|
2004-07-12 14:27:05 +02:00
|
|
|
tee -a ${CONFIG_PATH} >> ${WRKSRC}/shared_libs/tls/config.res << EOF
|
2004-08-29 22:37:58 +02:00
|
|
|
tls_dir='${OPENSSLBASE}'
|
|
|
|
tls_include_dir='${OPENSSLINC}'
|
|
|
|
tls_lib_dir='${OPENSSLLIB}'
|
1994-11-25 20:13:56 +01:00
|
|
|
EOF
|
|
|
|
|
|
|
|
exit 0
|