Messing around with autoconf

  • I’m trying to build a user interface for docker to assist with some of the basic docker commands instead of having to learn/remember all docker related concepts.
  • After checking out a few GUI frameworks I’ve decided to go with something that’s robust and has good cross platform support. Decision is to go with GTK4.
  • I’ve created simple C programs before but it turns out that setting up one with GTK on linux is proving to be more difficult than anticipated. Previously working with wxWidgets was a much more seamless experience but the UI is a bit theme options are a bit limiting. Some of the main headaches with GTK4 (and possibly with earlier versions too) is that it’s difficult to find/install/link all GTK dependencies.
  • After some research I’ve attempted to find these libraries manually but they just continue down a rabbit hole. A post I’ve come across suggests to rather just make use of autoconf which is what I’ve trying to achieve now and hopefully document some of the basics in this article.
  • Getting started with autoconf:
    • The GNU build system consists of AutoMake, GNULib and Libtool
    • Autoconf is only required for build time and not required for runtime
    • The goal of autoconf is to make the configure task painless
    • Automake allows you to specify your build needs in Makefile.am
    • Libtool handles all the requirements for building shared libraries for you
    • To create a configure file with AutoConf you need a file called configure.ac
    • Writing configure.ac
      • The autoscan program can give you a good start to creating the configure.ac file.
      • Autoconf uses a language that’s a layer on top of sh (Bourne shell). A superset of sh you may say.
      • Every configure.ac must contain an AC_INIT call at the start and AC_OUTPUT at the end
      • E.g. structure:
        AC_INIT(package, version, bug-report-address)
        information on the package
        checks for programs
        checks for libraries
        checks for header files
        checks for types
        checks for structures
        checks for compiler characteristics
        checks for library functions
        checks for system services
        AC_CONFIG_FILES([file…])
        AC_OUTPUT
      • At the root of you project run autoscan. This will produce the file configure.scan.
      • Then rename configure.scan to configure.ac.
      • To create the final configure (sh file) file run autoconf without any arguments.
      • Sometimes autoconf will create the configure shell script but the config.guess and config.sub files might be missing. In this case run “automake -a” to install missing files.
  • bookmark, https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.72/autoconf.pdf , page 14
  • Reference: https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.72/autoconf.pdf

Posted

in

by

Tags:

Comments

28 responses to “Messing around with autoconf”

  1. Skapa ett gratis konto Avatar

    I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article. https://accounts.binance.com/register-person?ref=IXBIAFVY

  2. binance anm"alan Avatar

    I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article. https://www.binance.com/register?ref=IHJUI7TF

  3. mobic medication generic

    mobic medication generic

  4. mirtazapine 15 mg tablet price

    mirtazapine 15 mg tablet price

  5. tetracycline antibiotics for cattle

    tetracycline antibiotics for cattle

  6. 98win98wim Avatar

    98win98wim? Yeah, I’ve had some decent luck there. Never hurts to check it out. It has a good reputation with my friends. 98win98wim

  7. xbet100casino Avatar

    What’s up, everyone? I recently checked out xbet100casino and it’s looking good! Smooth gameplay and a good variety of options. Go check it out: xbet100casino

  8. 361betlogin Avatar

    Alright folks, checked out 361betlogin and gotta say, registration was a breeze. Site’s pretty straightforward, not too flashy, you know? Found some decent games to mess around with. Give it a shot, see what you think! Check it out here: 361betlogin

  9. allopurinol 300 mg tablet over the counter

    allopurinol 300 mg tablet over the counter

  10. prevacid generic cost

    prevacid generic cost

  11. fluconazole 100 mg tablet

    fluconazole 100 mg tablet

  12. sertraline hcl 25 mg tablet

    sertraline hcl 25 mg tablet

  13. Binance推荐代码 Avatar

    Your article helped me a lot, is there any more related content? Thanks!

  14. nexium 24hr capsules

    nexium 24hr capsules

  15. sildenafil tablets images

    sildenafil tablets images

  16. 免费Binance账户 Avatar

    Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

  17. Binance账户创建 Avatar

    Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://accounts.binance.com/en-ZA/register/person?ref=B4EPR6J0

  18. semaglutid wegovy oder tirzepatid mounjaro

    semaglutid wegovy oder tirzepatid mounjaro

  19. "oppna binance-konto Avatar

    Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  20. true fortune casino_sist Avatar

    true fortune free 250 chip no deposit codes https://true-fortune-unitedkingdom.com/ .

  21. sildenafil citrate tablets ip 100mg uses in hindi male

    sildenafil citrate tablets ip 100mg uses in hindi male

  22. binance referal code Avatar

    Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://accounts.binance.bh/en-IN/register/person?ref=A80YTPZ1

  23. tadalafil dosage max

    tadalafil dosage max

Leave a Reply

Your email address will not be published. Required fields are marked *