Commits

Satish Balay committed 313005a

#43711 fix --with-x-lib option. [needs rework]

Hg-commit: 07cb4f811b1199eaaa65cd1aebc62945435f1da4

  • Participants
  • Parent commits 0060f21

Comments (0)

Files changed (1)

File config/PETSc/packages/X11.py

           break
     # Check for X11 libraries
     if self.framework.argDB.has_key('with-x-lib'):
-      if not os.path.isfile(self.framework.argDB['with-x-lib']):
-        raise RuntimeError('Invalid X library specified by --with-x-lib='+os.path.abspath(self.framework.argDB['with-x-lib']))
-      libraryDir = os.path.dirname(self.framework.argDB['with-x-lib'])
+      if not os.path.isfile(self.framework.argDB['with-x-lib'][0]):
+        raise RuntimeError('Invalid X library specified by --with-x-lib='+os.path.abspath(self.framework.argDB['with-x-lib'][0]))
+      libraryDir = os.path.dirname(self.framework.argDB['with-x-lib'][0])
       foundLibrary = 1
     else:
       testLibraries = [('X11', 'XSetWMName')]