Custom autoconf macro bug

So I've been learning how to use autotools. I noticed that the code to check for a required library and associated headers is the same four or five lines over and over again, so I tried my hand at writing a macro...
# AX_REQUIRED_LIB(function, library-file, header-files...)
AC_DEFUN([AX_REQUIRED_LIB], [
AC_SEARCH_LIBS([$1], [$2], [],
[AC_MSG_ERROR([$2 required.])
m4_foreach([header], [$3],
[AC_CHECK_HEADER([header], [],
[AC_MSG_ERROR([header required.])])
It seems to work well for libs, but not headers. If I test it out with something like this:
AX_REQUIRED_LIB([initscr], [curses], [curses.h, stdlib.h, doesnotexist.h])
Which from my understanding should fail with the message 'doesnotexist.h required.', but instead I get this:
checking for doesnotexist.h... (cached) yes

I thought I had a CAR...
But unfortunatly I can't locate it, so I assume their isn't any.
Could you supply us with one?
Thanks,
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!

Similar Messages

  • Using Custom Defined Macro

    Hi
    I am trying to use the function *@ISUDA* in a custom defined Macro and call the Macro from a Calcscript.
    Macro is as follows:-
    create macro 'APPLICATIONAME' .'@macrofunc'(optional) as
    IF (@ISUDA("Account","UDAstring"))
    @SUM(1,2);
    ELSE     
    @SUM(4,2);
    ENDIF
    Calcscript is as follows:-
    SET UPDATECALC OFF;
    FIX(...)
    "Member"
    "A/c member"= @macrofunc ();
    ENDFIX
    Error given is as follows:-
    Error: 1200336 Error compiling formula for [Member] (line 8): [(] without [)]

    create macro 'APPLICATIONAME' .'@macrofunc'(optional) as
    You should try adding account name to the macro itself. I have not use macro as a return type but only as repeatable piece of code. Also, macros are used only with business rules but not calculation scripts
    IF (@ISUDA("Account","UDAstring"))
    "A/c member"= @SUM(1,2);
    ELSE     
    "A/c member" = @SUM(4,2);
    ENDIF
    Calcscript is as follows:-
    SET UPDATECALC OFF;
    FIX(...)
    %macrofunc ();
    ENDFI

  • @Prior and Custom Defined Macros

    Hello all,In planning applications, year and months are in seperate dimensions. For this reason, it is very hard to use @prior function when you go several months backwards. For example if you are in Feb 2004 and you need to go back 5 months, you need to go prior in Years dimension too.I have seen a custom defined macro for a similar calculation, but i wasn't able to rewrite it to my needs. Has anyone done a similar calculation??

    There is new function in version 6.5.1 called @XRANGE. This function does what you are looking to do. There is not a lot of documentation on this particular function however. For instance it is not in the Tech reference.The function takes as two members (single or cross-dimensional) and returns a member range.The function is primarily used for working with Time and Scenario dimensions instead of creating a dimension that combines the two.Basically the @XRANGE function allows you to store your months in a Time dimension and your years in a seperate Scenario dimension, but still do calculations as if you had set up a fiscal year cross over model.The syntax is @XRANGE(mbrName, mbrName)Hope that helps.

  • Custom icon editor BUG

    If you use a custom Icon editor (as shown here and here), and you want to create a smaller Icon this will be meaningless.
    Because the lv_icon interface only allows you to generate the 2-colour and 256 colour icon. The 16 colour icon will be untouched so the total size of the icon will still be 32x32 pixels.
    I consider this a serious bug in the lv_icon customization scheme.
    Ton
    Message Edited by TonP on 01-02-2008 08:59 PM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

    I thought I had a CAR...
    But unfortunatly I can't locate it, so I assume their isn't any.
    Could you supply us with one?
    Thanks,
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Issue in BAPI- BAPI_PBSRVAPS_GETDETAIL2 with custom default macro in SNP

    Hi Experts,
    System Details:
    SCM 5.0
    SP Pack: 13
    SNP PA1- No Time series Key figures, only order series
    SNP PA3: With time series KF, which also included dynamic safety stock time series KFs
    We have created custom macro ZGSCM_SAFETY_STOCK copy
    of /SAPAPO/SAFETY_CALC where we used BAPI- BAPI_PBSRVAPS_GETDETAIL2 to
    get the dynamic safety stock values from PA3(Planning area3-Planning book3) to PA1(Planning area1-Planning book1). We are getting two issues while doing this as below:
    1) Issue we are facing is that when it goes to PA3, it actually save
    PA3 planning book for that user as a active planning book and return
    back with PA3-planning book. So to avoid this, we call same BAPI again
    where we are just calling PA1 planning book without any selection and It works fine and returns
    the safety stock values correctly. But now when we load multiple items and
    doing the drill down then we are getting an error message saying:
    Error reading planning objects (No SNP master data table found)
    Error reading data - Planning book cannot be processed further
    Do we have any other way to set the active session for user after BAPI call with in the program?
    2) Also it always call default macros when BAPI calls which we don't
    want, Is there any way we can avoid calling default macros while calling BAPI-BAPI_PBSRVAPS_GETDETAIL2
    Regards,
    Hitesh

    Hi,
    The first issue which you faced is becasue of the BAPI which tries to access all the Key Figurs of the data view from which you need to copy data. These KF might be used in different Macros & those macro's might be running for different periodicities.
    You can create separate data view the the same planning book & assign the KF to the newly created data view. Most probably, this will solve your problem & you wont get any error message.
    Incase the error message pops up, you need to create diffent planning book or planning area (based on your previous PA) & then try. This will definately solve problem which u had faced.
    Thanks!
    Jay

  • Custom aac importing bug

    I use itunes on my pc and when I try to import songs in AAC custom form the program returns 2 the AAC default (128KBPS\64KBPS). the custom option does work in MP3 importing and stuff and it used to work in AAC as well but now I cant shake this bug:'(
    plz help me!!!
    I use win XP pro and itunes 4.9.0.17
    10X 4 Ur help hope U can solve my prob :-?

    Thanks for the lead Buegie, but that was not the problem for me. Neither of those files were read only, and both show having been modified today.
    That feels like a good direction though. It's wierd that no error messages are generated, and it lets you go through all the steps to make the change, nothing grayed out, you click OK, then... no changes are recorded in the "Details" box, although "Custom" is displayed in the drop down menu. It thinks it's doing something, but some part of the process fails further down the line.
    I've only had this computer running for a few months, but I know that I have recorded at a custom AAC setting with it within the past few months. The songs are on the hard drive. I don't know when the problem started happening, and I've made too many changes to the system to pin the cause down.
    btw, path for second file should have been
    ....<username>\Local Settings\Application Data....

  • Custom ant task bugs yield NullPointerException (NPE)?

    Seems that if any of the custom ant tasks are call more than once in a build the build fails with a NPE. Looking at the stack trace from a genProxy failure it seems to fail in WSATask.execute(WSATask.java:1047). Assemble also seems to fail. I think the only option is to either write my own wrapper or write a macro that run "java -jar wsa.jar ..." Anyone else seen this problem? Have a solution?

    Tim-
    This seems to be a problem with ClassLoader interactions; it will be
    fixed for the next 2.5 RC (or final release). Thanks for pointing it
    out.
    In article <bbngrl$j47$[email protected]>, Tim van der Leeuw wrote:
    >
    Hi,
    When running the Schematool from the Eclipse-plugin or from the ANT-task,
    I get a NullPointerException. The ANT-plugin gives a more-or-less usefull
    exception-traceback, the Eclipse-plugin doesn't give any useful hints.
    The funny thing however is that from the commandline it all works!--
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Migrating custom excel macros

    Hi Everyone. I am currently migrating from XP to Win 7 replacements and refreshes. Everything is going swell except macros are not coming over during the replacements. We are using sccm 2012 r2 cu1.
    Can someone suggest a solution?
    Thanks
    Rasheedah

    I got this to work omg...thanks for pointing out the missing xml in scan ts Peter.
    but I also needed to generate a configuration file which I failed to do and update the ini file with the highlighted entries
    http://social.technet.microsoft.com/wiki/contents/articles/23557.create-custom-xml-for-osd-in-sccm.aspx
    Thanks to also Johan
    Arwidmark
    [Settings]
    Priority=Default
    Properties=OSDMigrateConfigFiles,OSDMigrateMode
    [Default]
    DoCapture=NO
    ComputerBackupLocation=NONE
    BDEInstallSuppress=YES
    MachineObjectOU=ou=Workstations,ou=viamonstra,dc=corp,dc=viamonstra,dc=com
    OSDMigrateMode=Advanced
    OSDMigrateAdditionalCaptureOptions=/ue:*\* /ui:VIAMONSTRA\*
    OSDMigrateConfigFiles=Miguser.xml,Migapp.xml,MyExcelMacroTemplate.xml
    SLSHARE=\\CM01\Logs$
    ApplyGPOPack=NO

  • URGENT: Custom Defined Macro

    I developed the following macro: MAXL> create macro MIS2000.'@ISMBRSUBSTRING'(single,single,single) as 2> '@ISMBR(@MEMBER(@SUBSTRING(@CURRMBR (@@1),@@2,@@3)))' 3> spec '@ISMBRSUBSTRING(dimName,StartPosition,EndPosition)' 4> comment 'verifies if the substring of a current member in the specified dimension is a current member in another dimension'; We have a dimension "Year" with members 1999, 2000, 2001, 2002, 2003... and a dimension "Planversion" with members 2000_01, 2001_02,... 2001_12, 2002_01, ...So I use the CDM in a member formula as follows:IF(@ISMBRSUBSTRING(Planversion,0,4)) ....ELSE ....ENDIFI would like to check out if the current member in the year dimension equals the first 4 letters of the current member in the dimension "Planversion" and use this in an IF statement.When I used this macro in a member formula the application crashed immediately. Is there anything wrong with my macro? Or is there another way to get the desired result.I would need urgent help as I do need a solution by monday (next data load).Your help is highly appreciated. Gerald PS We use Essbase 6.14

    It would have been easier if you had tried to do it. Just for fun... did you even try before asking.. I guess, since you are asking, you did not try. I kind of find it lame that people ask questions before even taking 2 mins to try it out.
    Macros can be used in business rules but not calc scripts.

  • URGENT--Custom Defined Macro Problem.

    Can u pls . explain what does ELSE;@@1-@' means in following.( pointed by<<---????????????). The macro is correct & working fine but I am unable to decode it fully.create or replace macro 'EEF'.'@MMOV'(ANY) as 'IF(@ISMBR(JAN));IF(@ISMBR(FY06,FY07,FY08,FY09));@@1-@PRIOR(@@1->DEC,1,@CHILDREN(Years));ELSE;@@1-@@1->BegBalance;ENDIF;ELSE;@@1-@' <<---????????????spec 'Calc Month Movement on Account'comment 'Valid for FY04 thru FY09 : BegBalance input to FY04 :Requires modification (or use of SubsVars) for later year BegBalance'Regards

    Turns out this problem can be resolved by the proper JDK settings.
    I was using JDK 1.6 to compile my code (as its a pain to find and download the 1.5 JDK). Essbase uses a 1.5 JVM.
    The following errors can be resolved by the proper javac settings:
    Java Virtual Machine error
    Wrong java method specification
    Here is the new javac line I used with JDK 1.6:
    javac -target 5 CalcFunc.java

  • Custom Excel macros can't be accessed by new admin user, only original developer

    Excel macros created several years ago using NI Measure are not accessible to users other than the original developer.  We are using Win 2000 OS, NI Measure version 1.2 upgraded from version 1.0, and Microsoft Office Excel 2003 SP1.  Even if the user has the same admin rights as the original developer of the macro, they cannot access it.  The macro is accessible and works fine when the original developer logs into the win 2000 pc with his login name and password.  Has anyone else had this problem?  Does anyone know how we can resolve this issue?
    Thanks,
    Alex H.

    Alex,
    The first thing to try would be to install the patch for Measure (Measure Patch 1.2c) if you haven't already.  Do you have this same issue when trying to access Macros not created by Measure?  Unfortunately, the best I could find on Macro and Measure issues were the following KBs. 
    General Measure Support KB
    Macro and Measure Support KB
    Hope this helps!
    Andy F.
    National Instruments

  • Potential JavaSSO and Custom Login Module Bugs In Clustered Environment

    We've been working with the custom login modules and JavaSSO and have found issues with deployment on 10.1.3.2 in a clustered environment. Deployment on a single server looks like it is working properly.
    I'm wondering whether any one here has been using CLM with JavaSSO and have deployed in a clustered application server environment? I've posted in the past regarding this in the OC4J side, but never got a response, so I thought I'd try the experts here...
    Here are some TARS that we've logged. Any help from the community would be appreciated.
    6320304.994 JAVASSO JSSOUTIL.LOGOUT FUNCTION REDIRECT NOT WORKING ON CLUSTER
    6365407.993 SETTING <distributable/> TAG IN WEB.XML CRASHES APPLICATION
    6338664.992 JAVASSO LOGIN PAGE DOES NOT LOGIN USER BUT RELOADS LOGIN PAGE
    Thanks!
    Kenton

    Hi Kenton,
    Specifically, what were the issues that you ran into when clustering JavaSSO? Was it a problem only when combined with the Custom LM?
    As long as the same CLM is configured for your app (I assume this is also clustered) and JavaSSO, that should be sufficient. Obviously, CLM need to be configured against the same user repository.
    If the apps were on different hosts, did you remember to set the property "custom.sso.cookie.domain" to set the right domain name in the cookie? Otherwise, you will keep getting redirected to the login page.
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b28957/javasso.htm#BABJCGCB
    -skt

  • Custom bash coloring bug?

    Hi,
    I notice that when I change my console color through the .bashrc file, the LS command results in the color replacement for 'white' not working past the 'blue' items. For example, in the listing for "ls", any blue items that occur will result in the "gray" text instead of the new color meant to replace it. Is there a fix for this?

    Hi,
    I put the 'dircolors' command in my .bashrc, but now when I login I get the following output in my shell:
    LS_COLORS='rs=0:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:';
    export LS_COLORS
    This happens immediately after I login and type my password in SSH. Why is it doing this, and how can I prevent this output? Thanks.

  • Custom VBA Functions BPC

    Hello,
    I would like to know how to use custom VBA function in BPC. I read the administration guide but I didn't understand this part.
    For instance, if I want to use the "BEFORE_REFRESH" function, where do I have to implement it ?
    Thanks in advance

    Hello Mark,
    I've also used BPC VBA functions quite extensively to extend BPC capabilities with success up until now, but I am now struggling with finding a way to make them work when registered as macros from an external add-in.
    The scenario is the following: I currently leverage custom VBA macros (BEFORE_EXPAND, AFTER_EXPAND, etc) to extend BPC functionalities, and the code is distributed in the VBA modules attached with my input schedules/reports spreadsheets.
    I then decided to consolidate the functionalities in an Excel automation add-in, which (among other tasks) registers the same macros once at Excel startup to be used by all the different input schedules / report: macros are registered and exposed correctly (they are showing up in the list of available functions) but for some reasons they are not fired by the Expand All or Refresh menu actions.
    Any idea about why the macros are not executed? Do they necessarily need to be written in a VBA module attached to the spreadsheet?
    Many thanks in advance.
    Regards
    Jacopo

  • Macros in Java

    Hi
    I have an urgent requirement of writing Macros in Java for the Open Office that we are using. Any site with information about it would be very helpful.
    Thanks in advance

    We can assign custom scripts (macros) to menu items, icons, dialog controls, and events in OpenOffice.org.
    OpenOffice.org internally supports the following scripting languages:
    1.OpenOffice.org Basic
    2.JavaScript
    3.BeanShell
    In addition, developers can use high-level languages, for example Java programming language, to control OpenOffice.org externally. See the API project at OpenOffice.org.

Maybe you are looking for

  • Can't hear recorded sound during video playback

    I take a lot of videos of my kids.  I have noticed lately that the volume is low or muffled...you can't hear what is being said even if they are screaming 6 inches away.  I thought maybe something had gotten into the microphone, etc.  I recorded a vo

  • Query change from 11i to R12

    Hi, Please help me out from the below query..... In 11i we are using the below Query. SELECT a.AE_HEADER_ID,a.AE_LINE_NUMBER, a.AE_LINE_ID, a.AE_LINE_TYPE_CODE,a.CODE_COMBINATION_ID, a.CURRENCY_CODE,a.ENTERED_DR,a.ENTERED_CR,a.ACCOUNTED_DR,a.ACCOUNTE

  • Crystal Report for Generic (Draft) Docuent.

    Dear all, I have a Crystal Report for Draft Document using TmSp_DocLineTypeLayout Stored porcedure it was working fine in our company Database but When i deploy in to client machine it working fine for added records but when i call the report for gen

  • Computer not recognizing that my ipod is pluged in!!

    I have recently reformatted my comeputer and got some new music put on my itunes and when i tried to plug in my ipod it just doesnt do anything...like the little screen on the ipod that usually sais "do not disconnect" doesnt come up...the computer d

  • Video Rate Changes from Cinema Tools to Final Cut

    I have a problem that exists on serveral levels. Hopefully I can explain: 1. I directed a concert shoot with eight cameras. All cameras were Panasonic DVX100A configured for 24p Advanced except one, which was a Panasonic SDX900 configured for 24p (wh