Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43741 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84675 invoked from network); 19 Apr 2009 22:56:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Apr 2009 22:56:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 209.85.146.176 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 209.85.146.176 wa-out-1112.google.com Received: from [209.85.146.176] ([209.85.146.176:6670] helo=wa-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 37/09-28450-63CABE94 for ; Sun, 19 Apr 2009 18:56:54 -0400 Received: by wa-out-1112.google.com with SMTP id j40so835133wah.7 for ; Sun, 19 Apr 2009 15:56:51 -0700 (PDT) Received: by 10.115.91.11 with SMTP id t11mr2937945wal.117.1240181811606; Sun, 19 Apr 2009 15:56:51 -0700 (PDT) Received: from ?192.168.223.130? ([76.84.30.125]) by mx.google.com with ESMTPS id m17sm6723557waf.31.2009.04.19.15.56.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 19 Apr 2009 15:56:50 -0700 (PDT) Message-ID: <49EBAC2E.60709@chiaraquartet.net> Date: Sun, 19 Apr 2009 17:56:46 -0500 User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: need help with Makefile From: greg@chiaraquartet.net (Greg Beaver) Hi, I never do Makefile stuff, so I need someone who can tell me why this blasted piece of scripting doesn't work: @if test "a$(program_prefix)" != "a"; then \ PEAR_PREFIX = " -dp php_prefix=$(program_prefix)"; \ fi @if test "a$(program_suffix)" != "a"; then \ PEAR_SUFFIX = " -ds php_suffix=$(program_suffix)"; \ fi install-pear-installer: $(SAPI_CLI_PATH) @$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) $(builddir)/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)" $(PEAR_PREFIX) $(PEAR_SUFFIX) What I am trying to do is to pass in those options ONLY if --program_prefix or --program_suffix were specified in the configure line. Any working solution is appreciated. Thanks, Greg