This repository was archived by the owner on May 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathconfigure
executable file
·71 lines (56 loc) · 1.79 KB
/
configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#! /bin/sh
#
# This script is a simple wrapper calling the autoconf configuration
# script (configure) in install/
# Dependencies may be also directly generated
#
# Courtesy of A. Ferretti and G. Bussi
#
#================================================================
#
MANUAL=" Usage
configure [-h, --help] [<conf_flags>]
-h, --help print this manual
<conf_flags> these flags will be passed to
the autoconf configure
After configuration, the make.sys file will created in the
QE home (current) directory
---------------------------------------------------------------
Manual from autoconf configure :
---------------------------------------------------------------
"
#
#================================================================
#
# run from directory where this script is
auxdir=`echo $0 | sed 's/\(.*\)\/.*/\1/'` # extract pathname
if [ "$auxdir" != "configure" ] ; then cd $auxdir ; fi
root=.
#
# detect the simplest cases
#
case $1 in
("-h" | "--help" ) echo "$MANUAL" ; $root/install/configure --help ; exit 0 ;;
esac
#
# run the autoconf configure with the
# given cong_flags
#
test -e $root/install/make.sys && rm $root/install/make.sys
test -e $root/install/configure.msg && rm $root/install/configure.msg
$root/install/configure "$@"
#
# copy make.sys in the home dir
# and final clean up
#
test -e $root/install/make.sys && mv $root/install/make.sys .
test -e $root/make.sys && mv $root/make.sys ../
test -e config.log && mv config.log $root/install/
test -e config.status && mv config.status $root/install/
test -e configure.msg && mv configure.msg $root/install/
#
# copy the Makefile (GPU-only)
#
test -e $root/install/Makefile.gpu.in && cp $root/install/Makefile.gpu.in ../Makefile.gpu
#
exit 0