LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-02-2007, 03:53 AM   #1
YuriyRusinov
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Rep: Reputation: 0
variable from configure script to h-file


Hello !

I have defined variable in configure.ac
Code:
    ...
    EPSG_DATA_DIR = EPSG_PREFIX/share/epsg;
    AC_DEFINE_UNQUOTED(EPSG_DATA_DIR, ["]$EPSG_DATA_DIR["], [--data directory for EPSG install])
    AC_SUBST (EPSG_DATA_DIR)
    ...
and in .qmake.cache.in
Code:
    EPSG_DATA_DIR=@EPSG_DATA_DIR@
I try use it in macro in file config.h.in
Code:
    #define EPSG_DB_FILE "$${EPSG_DATA_DIR}/epsg.db"
but in config.h replacement does not occur and I receive
Code:
    #define EPSG_DB_FILE "$${EPSG_DATA_DIR}/epsg.db"
Where is my error, and which way I have to resolve this problem ?

Best regards,
Yuriy Rusinov.
 
Old 10-02-2007, 04:19 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
clearly not a success story. please pick your forums more carefully in future. this thread will shortly be moved to a more suitable location.
 
Old 10-02-2007, 05:15 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling perl script and passing variable from php script hosea Programming 5 10-21-2008 08:01 AM
Saving a text file as a variable and reading it every second in java script mrobertson Programming 4 03-26-2007 08:25 PM
setting a variable variable in a script... this works, but could it be more elegant? pwc101 Programming 3 08-18-2006 11:23 AM
Variable in Script jstephens84 AIX 4 07-14-2006 09:21 AM
setting PKG_CONFIG_PATH variable, GAIM ./configure Hal Linux - Newbie 5 07-17-2004 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration