# author: hackbard@hackdaworld.dyndns.org
#
# [V] 0.7.1
-# [S] 3-2
+# [S] 3-4
# [D] lirc-0.7.1.tar.bz2 http://mesh.dl.sourceforge.net/sourceforge/lirc/
# specify driver, port, irq
port="0x3f8"
irq="4"
+kver=`grep '^#\ \[V\]' $confdir/../../base/linux/linux | awk '{ print $3 }'`
+
+confopt="$confopt --with-kerneldir=$prefix/src/linux"
+confopt="$confopt --with-moduledir=$root/lib/modules/$kver/misc"
confopt="$confopt --with-driver=$driver --with-port=$port --with-irq=$irq"
pre_install() {
--- /dev/null
+--- ./configure.orig 2005-08-23 18:54:16.000000000 +0200
++++ ./configure 2005-08-23 18:59:25.000000000 +0200
+@@ -24195,8 +24195,8 @@
+ :
+ else
+
+- echo "$as_me:$LINENO: checking if sha2 is defined in openssl/sha.h" >&5
+-echo $ECHO_N "checking if sha2 is defined in openssl/sha.h... $ECHO_C" >&6
++ echo "$as_me:$LINENO: sha2 is defined in openssl/sha.h" >&5
++echo $ECHO_N "sha2 is defined in openssl/sha.h... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+@@ -24217,40 +24217,6 @@
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+- (eval $ac_compile) 2>conftest.er1
+- ac_status=$?
+- grep -v '^ *+' conftest.er1 >conftest.err
+- rm -f conftest.er1
+- cat conftest.err >&5
+- echo "$as_me:$LINENO: \$? = $ac_status" >&5
+- (exit $ac_status); } &&
+- { ac_try='test -z "$ac_c_werror_flag"
+- || test ! -s conftest.err'
+- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+- (eval $ac_try) 2>&5
+- ac_status=$?
+- echo "$as_me:$LINENO: \$? = $ac_status" >&5
+- (exit $ac_status); }; } &&
+- { ac_try='test -s conftest.$ac_objext'
+- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+- (eval $ac_try) 2>&5
+- ac_status=$?
+- echo "$as_me:$LINENO: \$? = $ac_status" >&5
+- (exit $ac_status); }; }; then
+- echo "$as_me:$LINENO: result: no" >&5
+-echo "${ECHO_T}no" >&6
+- case $LIBOBJS in
+- "sha2.$ac_objext" | \
+- *" sha2.$ac_objext" | \
+- "sha2.$ac_objext "* | \
+- *" sha2.$ac_objext "* ) ;;
+- *) LIBOBJS="$LIBOBJS sha2.$ac_objext" ;;
+-esac
+-
+- CRYPTOBJS="$CRYPTOBJS sha2.o"
+-
+-else
+ echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' conftest.$ac_ext >&5
+
+@@ -24263,7 +24229,6 @@
+ _ACEOF
+
+
+-fi
+ rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+
+ CPPFLAGS_ADD="$CPPFLAGS_ADD -I./\${top_srcdir}/src/racoon/missing"