diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-14 02:19:27 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-14 02:19:27 +0000 |
commit | f6f45af59e8cd572e724d95f3736f6a60f73486c (patch) | |
tree | e0541c60cb3ce6aa7b8af21911666212666e52de /make | |
parent | a3134fbaaa799a16f3ab3d11aa911296678bfc78 (diff) |
Fix broken ./configure macros broken by introduction of an eval
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6316 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make')
-rw-r--r-- | make/utilities.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/make/utilities.pm b/make/utilities.pm index fac0cb356..dc755c63f 100644 --- a/make/utilities.pm +++ b/make/utilities.pm @@ -123,9 +123,10 @@ sub pkgconfig_get_lib_dirs($$$;$) # to functions within these modules at configure time. sub translate_functions($$) { + my ($line,$module) = @_; + eval { - my ($line,$module) = @_; $module =~ /modules*\/(.+?)$/; $module = $1; @@ -185,13 +186,16 @@ sub translate_functions($$) my $replace = make_rpath($1,$module); $line =~ s/rpath\("(.+?)"\)/$replace/; } - return $line; }; if ($@) { print "\n\nConfiguration failed. The following error occured:\n\n$@\n"; exit; } + else + { + return $line; + } } 1; |