Changeset 1701:a247fb068a77 in roaraudio


Ignore:
Timestamp:
05/14/09 13:50:33 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

updated and fixed help, option to force pkg config :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/audacious/configure

    r1695 r1701  
    1010   shift; 
    1111  ;; 
     12  --pkg-config) 
     13   PKG_CONFIG="$2" 
     14   shift; 
     15  ;; 
    1216  --force-have-roar) 
    1317   HAVE_ROAR=true 
     
    1822 
    1923Options: 
    20   --help         - Show this help 
    21   --inst-dir DIR - Install dir 
     24  --help               - Show this help 
     25  --inst-dir DIR       - Install dir 
     26  --force-have-roar    - Force to assume libroar is ok 
     27  --pkg-config PKGCONF - Set filename for pkg-config 
    2228EOF 
     29    exit 0 
    2330   ;; 
    2431  *) 
     
    4451 
    4552echo -n "checking for pkg-config... " 
    46 PKG_CONFIG=$(which pkg-config false 2> /dev/null | grep ^/ | head -n 1) 
    47 if $PKG_CONFIG --help > /dev/null 2> /dev/null 
     53if [ "$PKG_CONFIG" = '' ] 
    4854then 
    49  echo $PKG_CONFIG 
     55 PKG_CONFIG=$(which pkg-config false 2> /dev/null | grep ^/ | head -n 1) 
     56 if $PKG_CONFIG --help > /dev/null 2> /dev/null 
     57 then 
     58  echo $PKG_CONFIG 
     59 else 
     60  PKG_CONFIG='' 
     61  echo no 
     62  on_error; 
     63 fi 
    5064else 
    51  PKG_CONFIG='' 
    52  echo no 
    53  on_error; 
     65  echo $PKG_CONFIG '(forced)' 
    5466fi 
    5567 
Note: See TracChangeset for help on using the changeset viewer.