|Linux| GNU autotool

If you want to porting any library from the distribution to another one,
you should learn GNU autotool firstly.

From porting libqmi, we can learn this fact.

Step 1: install the following libraries.
autotools-dev
libev-dev
autoconfig
automake
autoconf-archive
libtool

Step 2: enter the libraries’ folder
    which included configure.ac, Makefile.am
./configure //in fact, doing autoconf
make
make install


Explanation of files:
configure.ac: input file for Autoconf.
Makefile.am: input file(s) for Automake.

Ref.
https://www.gnu.org/software/automake/faq/autotools-faq.html
https://opensource.com/article/19/7/introduction-gnu-autotools

|Tools| Useful Linux Commands

.在特定類型的文件裡找字串
grep -ir “ooxx“ –include=”*.java”

.掛載外接硬碟
sudo fdisk -l
mkdir /media/usb
sudo mount -v -t auto /dev/sdb1 /media/usb

.找特定類型的檔案
find -iname *.git

.確認編譯出來檔案的 ELF
readelf

.列出所有執行的東西
ps -Al

.用 string2 取代 file1 裡的 string1,存成 file2
awk ‘{gsub(/string1/,”string2″)}1’ file1 > file2