~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/search_for_lib.m4

  • Committer: Brian Aker
  • Date: 2008-11-25 01:33:32 UTC
  • mfrom: (590.2.23 trunk)
  • Revision ID: brian@tangent.org-20081125013332-5q6umof4d3a8eq20
More Sun Studio patches from Monty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    AS_IF([test AS_VAR_GET([ac_header]) = "$3" -a AS_VAR_GET([ac_lib]) = yes],
31
31
      [AS_VAR_SET([have_lib],[yes])],
32
32
      [AS_VAR_SET([have_lib],[no])
33
 
       AS_VAR_SET([with_lib],[AS_VAR_GET([with_lib]) /usr/local /opt/csw])
 
33
       AS_VAR_SET([with_lib],["AS_VAR_GET([with_lib]) /usr/local /opt/csw"])
34
34
      ])
35
35
  ])
36
 
  AS_IF([test AS_VAR_GET([with_lib]) != yes],[
 
36
  AS_IF([test "AS_VAR_GET([with_lib])" != yes],[
37
37
   AC_MSG_CHECKING(for $1 in $withval)
38
38
   for libloc in AS_VAR_GET([with_lib])
39
39
   do
42
42
      owd=`pwd`
43
43
      if cd $libloc; then libloc=`pwd`; cd $owd; fi
44
44
      AS_VAR_SET([cppflags_var],[-I$libloc])
45
 
      AS_VAR_SET([libs_var],[-L$libloc -l$1])
 
45
      AS_VAR_SET([libs_var],["-L$libloc -l$1"])
46
46
      AS_VAR_SET([have_lib],[yes])
47
47
      break
48
48
    elif test -f $libloc/include/$3 -a -f $libloc/lib/lib$1.a; then
49
49
      owd=`pwd`
50
50
      if cd $libloc; then libloc=`pwd`; cd $owd; fi
51
51
      AS_VAR_SET([cppflags_var],[-I$libloc/include])
52
 
      AS_VAR_SET([libs_var],[-L$libloc/lib -l$1])
 
52
      AS_VAR_SET([libs_var],["-L$libloc/lib -l$1"])
53
53
      AS_VAR_SET([have_lib],[yes])
54
54
      break
55
55
    else