./configure(そのあとに、makeコマンドが続くような形式
で実行できるファイルの事を知りたいのですが、どういったワードで調べたら宜しいでしょうか?
シェルの形式に近いのかな?と思ったのですが、コメントアウトされていて調べきれていません。
./configure内は以下の通りです
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.65 for cvc3 devel.
#
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
# Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
emulate sh
NULLCMD=:
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST
else
以下略
configure自体はシェルスクリプトです。最初の行の#!/bin/shはUnixでは特別な意味を持ち、このファイルを解釈するのが/bin/sh (シェル) であることを示しています。
configureスクリプト自体は、autoconfというプログラムで自動生成されます。通常、configure.acというファイルにプロジェクト固有の設定を書いておいて、autoconfを走らせるとconfigureが出来ます。configure自体はシェルとunixの基本的なコマンドがあれば走るので、開発者側でautoconfを走らせてconfigureを配布物に含めておけば、ユーザ側ではautoconfは不要です。
調べるには、GNU autoconf、あるいはGNU autotoolsで検索すると良いと思います。
http://ja.wikipedia.org/wiki/Autotools
ありがとうございます!
2014/11/15 19:45:32最初の#だけ特別な意味を持つんですね。
てっきりシェルがコメントアウトされているものかと勘違いして、どのような構文で記述してあって、調べて読めばいいかわからないところでした。
ありがとうございます!