[PATCH] Problem with (in)direct-dependency check on HP-UX

Daniel Richard G. skunk at iSKUNK.ORG
Wed Oct 22 12:57:18 PDT 2008

When configuring pkg-config 0.23 on an HP-UX system, I get the following in 
the output:

	checking whether to list both direct and indirect dependencies... sh[303]: Syntax error at line 303 : `(' is not expected.

The offending line is at configure.in:44:

	deplibs_check_method=`(./libtool --config; echo eval echo \$deplibs_check_method) | sh`

(Note: I've confirmed that this line is still present in identical form in 
the latest BZR source tree, albeit at line 53.)

A strategically-placed tee(1) command shows that this is what sh is being 
fed (the last few lines of it, anyway):

-------->8 (cut here)--------
# Symbols that should not be listed in the preloaded symbols.

# Symbols that must always be exported.

eval echo file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library
--------(cut here) 8<--------

Looks like some quoting is in order! The following allows the check to 
proceed without any shell errors:

	deplibs_check_method=`(./libtool --config; echo eval echo '\"$deplibs_check_method\"') | sh`

That, effectively, is the patch.

Please Cc: any replies to me, as I am not subscribed to this list.


NAME   = Daniel Richard G.       ##  Remember, skunks       _\|/_  meef?
EMAIL1 = skunk at iskunk.org        ##  don't smell bad---    (/o|o\) /
EMAIL2 = skunk at alum.mit.edu      ##  it's the people who   < (^),>
WWW    = http://www.******.org/  ##  annoy them that do!    /   \
(****** = site not yet online)

More information about the pkg-config mailing list