an example of using automake.

原创 2005年02月26日 15:02:00

an example of  using automake (jconv project).

$ cd jconv
$ autoscan
$ mv configure.scan configure.in

edit configure.in file
$ cat configure.in
========== File configure.in ==========
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.57)
AC_INIT(jconv, 0.1.0,
fishchenATgmail.com)
AM_INIT_AUTOMAKE(jconv, 0.1.0)
AC_CONFIG_SRCDIR([jconv.h])
#AC_CONFIG_HEADER([config.h])

# Checks for programs.
AC_PROG_CC

# Checks for libraries.
AC_PROG_RANLIB
AM_PROG_LIBTOOL
#AC_PROG_LIBTOOL

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T

# Checks for library functions.
AC_CHECK_FUNCS([memset strerror])
#AC_OUTPUT
AC_OUTPUT(Makefile)
========== End ==========


$ aclocal
$ autoconf

edit Makefile.am file
$ cat Makefile.am

========== File Makefile.am ==========
AUTOMAKE_OPTIONS=gnu        # Flavor: gnu/gnits/foreign/cygnus
#AUTOMAKE_OPTIONS=foreign
bin_PROGRAMS=jconv
include_HEADERS=jconv.h
lib_LIBRARIES=libjconv.a
lib_LTLIBRARIES=libjconv.la

jconv_SOURCES=jconv_bin.c jconv.c jconv.h jconv_table.h
libjconv_a_SOURCES=jconv.c jconv.h jconv_table.h
libjconv_la_SOURCES=jconv.c jconv.h jconv_table.h

libjconv_la_LDFLAGS = -version-info 1:0:1  # -version-info C:R:A (5:30:1) libxxx.(C-A).A.R  (5-1.1.30) = 4.1.30
========== End ==========


$ libtoolize --automake
$ automake --add-missing


add missing file following automake.
finish.

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

#150 – An Example of Using PropertyChanged and CoerceValue Callbacks(PropertyChanged和CoerceValue例子)

在使用依赖属性的时候,有的时候可能会遇到需要强制限定多个依赖属性之间的关系的情况,这个时候一般会用CoerceValueCallback 和PropertyChangedCallbacks 来实现。 ...

An example of using libexif to set JPEG Orientation Tag

An example of using libexif to set JPEG Orientation Tag : http://www.jwz.org/blog/2008/12/cocoa-exif...

两个用C实现遗传算法的程序 an example of a very simple genetic algorithm in C and a GA implementation using binary and real coded variables

/* ga.c is an example of a very simple genetic algorithm in C */ & /***************************...

Looking for an example for inserting content into the response using a servlet filter

I’ve been searching the net and stackoverflow for an example of somebody inserting content into the ...

An Example Using boto Amazon MWS Package

Overview This article is a follow up of the Guide to boto Amazon MWS Python Package.Here we give ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)