Apache-Roaming
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
# -*- perl -*-
#
# $Id: Makefile.PL,v 1.2 1999/02/13 00:24:43 joe Exp $
#
#
# Apache::Roaming - A mod_perl handler for Roaming Profiles
#
#
# Based on mod_roaming by
# Vincent Partington <vincentp@xs4all.nl>
# See http://www.xs4all.nl/~vincentp/software/mod_roaming.html
#
#
# Copyright (C) 1999 Jochen Wiedmann
# Am Eisteich 9
# 72555 Metzingen
# Germany
#
# Phone: +49 7123 14887
# Email: joe@ispsoft.de
#
# All rights reserved.
#
# You may distribute this module under the terms of either
# the GNU General Public License or the Artistic License, as
# specified in the Perl README file.
#
############################################################################
require 5.004;
use strict;
use ExtUtils::MakeMaker;
use Getopt::Long;
use Cwd;
use vars qw($opt_config);
Getopt::Long::GetOptions('config');
my %prereq = ('File::Spec' => 0,
'Data::Dumper' => 0,
'URI::Escape' => 0,
'Apache' => 0);
use lib 'lib';
eval { require Apache::Roaming::LiPrefs::Config };
my $cfg;
eval {require File::Spec; require Data::Dumper};
if (!$@ &&
(!($cfg = eval { require ".status"}) or $opt_config)) {
$cfg = {} if !$cfg or ref($cfg) ne 'HASH';
my $httpd_path = $cfg->{'httpd_path'};
if (!$httpd_path) {
foreach my $dir (File::Spec->path()) {
my $file = File::Spec->catfile($dir, "httpd");
if (-x $file) {
$httpd_path = $file;
last;
}
( run in 1.898 second using v1.01-cache-2.11-cpan-39bf76dae61 )