Skip to content

Commit

Permalink
- libmagick configure improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Dumez committed Apr 11, 2008
1 parent 8422cb3 commit 54bf7e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,9 @@ public:
s = conf->getenv("QC_WITH_LIBMAGICK_LIB");
if(!s.isEmpty()) {
if(!QFile::exists(s+QString("/libMagick++.so"))){
return false;
}
if(!conf->checkLibrary(s, "Magick++")) {
return false;
}
}else{
QStringList sl;
sl << "/usr/lib/";
Expand All @@ -605,9 +605,9 @@ public:
sl << "/usr/local/lib64/";
bool found = false;
foreach(s, sl){
if(QFile::exists(s+QString("libMagick++.so"))){
if(conf->checkLibrary(s, "Magick++")) {
found = true;
break;
break;
}
}
if(!found)
Expand Down
10 changes: 5 additions & 5 deletions qcm/libmagick.qcm
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public:

s = conf->getenv("QC_WITH_LIBMAGICK_LIB");
if(!s.isEmpty()) {
if(!QFile::exists(s+QString("/libMagick++.so"))){
return false;
}
if(!conf->checkLibrary(s, "Magick++")) {
return false;
}
}else{
QStringList sl;
sl << "/usr/lib/";
Expand All @@ -55,9 +55,9 @@ public:
sl << "/usr/local/lib64/";
bool found = false;
foreach(s, sl){
if(QFile::exists(s+QString("libMagick++.so"))){
if(conf->checkLibrary(s, "Magick++")) {
found = true;
break;
break;
}
}
if(!found)
Expand Down

0 comments on commit 54bf7e6

Please sign in to comment.