|
Home > Archive > Unix Programming > March 2004 > command not found -- autoconf
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
command not found -- autoconf
|
|
|
| Hi all,
I want to test environment variable $ORACLE_HOME's existence in
configure.in, then find out the path of oracle client lib and pass it to
makefile.ins. But I got "./configure: save_OLPATH: command not found". Here
is what I put in configure.in :
save_OLPATH = $ORACLE_HOME
test -z $ORACLE_HOME && save_OLPATH="/opt/oracle/product/9.2"
dnl assign output variable here to myprog_LDFLAGS
AC_CHECK_FILE($save_OLPATH/lib/libclntst9.a
....
Is this the right way? if yes, how can I avoid above error?
Thanks in advance
-s
| |
| Barry Margolin 2004-03-31, 1:38 am |
| In article <pSoac.966$jS5.707@news04.bloor.is.net.cable.rogers.com>,
"seand" <seand@internet.net> wrote:
> Hi all,
> I want to test environment variable $ORACLE_HOME's existence in
> configure.in, then find out the path of oracle client lib and pass it to
> makefile.ins. But I got "./configure: save_OLPATH: command not found". Here
> is what I put in configure.in :
> save_OLPATH = $ORACLE_HOME
> test -z $ORACLE_HOME && save_OLPATH="/opt/oracle/product/9.2"
> dnl assign output variable here to myprog_LDFLAGS
> AC_CHECK_FILE($save_OLPATH/lib/libclntst9.a
> ...
>
> Is this the right way? if yes, how can I avoid above error?
>
> Thanks in advance
>
>
> -s
Your variable assignment syntax is incorrect -- you can't have spaces
around the '=' sign. So it should be:
save_OLPATH=$ORACLE_HOME
With the spaces there, it thinks that "save_OLPATH" is a command whose
first argument is '=', not a variable being assigned.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
| |
|
|
"Barry Margolin" <barmar@alum.mit.edu> wrote:
>
> Your variable assignment syntax is incorrect -- you can't have spaces >
around the '=' sign. So it should be:
:-)
|
|
|
|
|