Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added --with-perl option to select different libperl for embedding

  • Loading branch information...
commit bc04f05011c3130f520280c28b32c2b7fa575d80 1 parent bb87afc
Masayoshi Sekimura authored February 26, 2010

Showing 1 changed file with 15 additions and 3 deletions. Show diff stats Hide diff stats

  1. 18  configure.ac
18  configure.ac
... ...
@@ -1,7 +1,7 @@
1 1
 #                                               -*- Autoconf -*-
2 2
 # Process this file with autoconf to produce a configure script.
3 3
 
4  
-AC_PREREQ(2.64)
  4
+AC_PREREQ(2.52)
5 5
 m4_include([version.m4])
6 6
 AC_INIT([evpsgi], [1.0.0], [sekimura@gmail.com])
7 7
 AC_CONFIG_SRCDIR([evpsgi.c])
@@ -110,8 +110,20 @@ if test $ac_cv_libevent_dir != "(system)"; then
110 110
   fi
111 111
 fi
112 112
 
113  
-LDFLAGS="$LDFLAGS `perl -MExtUtils::Embed -e ldopts`"
114  
-CFLAGS="$CFLAGS `perl -MExtUtils::Embed -e ccopts`"
  113
+dnl ------------------------------------------------------
  114
+dnl -- perl detection to embed
  115
+tryperlpath=`which perl`
  116
+AC_ARG_WITH(perl,
  117
+       [  --with-perl=PATH     Specify path to perl installation ],
  118
+       [
  119
+                if test "x$withval" != "x" ; then
  120
+                        tryperlpath=$withval
  121
+                fi
  122
+       ]
  123
+)
  124
+
  125
+LDFLAGS="$LDFLAGS `$tryperlpath -MExtUtils::Embed -e ldopts`"
  126
+CFLAGS="$CFLAGS `$tryperlpath -MExtUtils::Embed -e ccopts`"
115 127
 
116 128
 dnl -- hmm it depends on MacPorts actually. I'll find out a better way later
117 129
 LDFLAGS=`echo $LDFLAGS | sed -e 's/-arch ppc//'`

0 notes on commit bc04f05

Please sign in to comment.
Something went wrong with that request. Please try again.