Detect the cuda library available.

We will use the cuda library for the upcoming automatic GPGPU code generation.

Contributed by: Yabin Hu  <[email protected]>

llvm-svn: 158064
7 files changed