I'm trying to set up autoconf for my project. All I have is doing "OK" except that AC_set_ & lt; ...> Functions. Are not found in. If I work well configure.status it directly runs I
In particular, I'm having trouble with as_fn_set_status and as_fn_exit
If I manually config I edit the file and move two functions at the top of the configured script, then everything works fine.
To get this point I:
- Configure Type A
- Autoreconf -i runs
- Gone ./configure
Result The couple lines are the same:
./configure: Line 1366: as_fn_set_status: Command not found There are 3-4 lines, which would have an error is.
Can this effect be produced but any thoughts? Here's my configuration. C:
###################################### #### # Autoconf configuration file for RPDB ####################################### ## # RPDB: An Object Oriented Cover for Oracle's Berkeley Database (BDB / libdb), #, which is available at: http://www.oracle.com/technology/software/products/berkeley-db/index Html ################ Init Autoconf & gt; = 2.61 # ########## ################# Ak_kanonikl_sistm Ak_prerk (2.61) Ak_init ([Rpdb], [0.1.0], [Asher @ ridiculouspower.com]) AC_CONFIG_AUX_DIR ([.]) AC_CONFIG_MACRO_DIR ([M 4]) AC_CONFIG_FILES ([Mekfail]) AC_CONFIG_HEADERS ([config.h]) AM_INIT_AUTOMAKE ################# Check out ##################################################################### ##### AC_FUNC_ERROR_AT_LINE AC_FUNC_MALLOC AC_CHECK_FUNCS ([strdup]) # ############################### # act compiler # Check for ############################### AC_PROG_CC AC_PROG_RANLIB ############## ########### Check the LibreOffron ######################### AC_SEARCH_LIBS ([db_create], [ Db], [has_libdb = yes]) ######################################### ################################################## ############################# Only Support L AC_CONFIG_SRCDIR is nominally used to specify ([src / RPDB_Base / RPDB.h]) # for ####################### header # ## Czech ##################### AC_HEADER_STDC AC_CHECK_HEADERS ([stdlib.h string.h]) # If we libdb try to db.h - we Both are required or if we put an error in "x $ {has_libdb}" = xyes exam; Then AC_CHECK_HEADERS ([db.h], [], [has_libdb = no]) if "x $ {has_libdb}" = xno; Then echo "------------------------------------------" echo "of Oracle Berkeley Database (libdb) "echo" library and header file is required "echo" build RPDB stop ... "echo" for more information check 'config.log'. "Echo" ------ ---- -------------------------------- "(Exit 1); Exit 1; Fi ################################################# #### # Check for type-related compiler features ################################## # ################ AC_C_CONST AC_HEADER_STDBOOL AC_TYPE_INT32_T Si_ TYPE_PID_T AC_TYPE_SIZE_T AC_TYPE_UINT32_T Si_ TYPE_UINT64_T AC_TYPE_UINT8_T ######################### ##### # Generate # Generate Script ############################## AC_OUTPUT
You can not use a macro with a non-empty extension before AC_INIT. If you run the AC_CANONICAL_SYSTEM invitation after AC_INIT, then your problem should be resolved.
Comments
Post a Comment