Browse Source

qt -> tqt conversion:

QTDIR -> TQTDIR
QTDOC -> TQTDOC
INCDIR_QT -> INCDIR_TQT
LIBDIR_QT -> LIBDIR_TQT
QT_INC -> TQT_INC
QT_LIB -> TQT_LIB

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
master
Michele Calgaro 8 months ago
parent
commit
fa7665909d
Signed by: Michele Calgaro <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF
1 changed files with 21 additions and 21 deletions
  1. 21
    21
      configure

+ 21
- 21
configure View File

@@ -22,7 +22,7 @@ while [ $# -gt 0 ]; do
22 22
 			;;
23 23
 
24 24
 		--qtdir=*)
25
-			QTDIR=`expr "${1}" : "--qtdir=\(.*\)"`
25
+			TQTDIR=`expr "${1}" : "--qtdir=\(.*\)"`
26 26
 			shift
27 27
 			;;
28 28
 
@@ -42,26 +42,26 @@ echo "Configuring TQt Cryptographic Architecture (QCA) ..."
42 42
 if [ "$QC_DEBUG" = "Y" ]; then
43 43
 echo
44 44
 echo PREFIX=$PREFIX
45
-echo QTDIR=$QTDIR
45
+echo TQTDIR=$TQTDIR
46 46
 echo
47 47
 fi
48 48
 
49 49
 printf "Verifying TQt 3.x Multithreaded (MT) build environment ... "
50 50
 
51
-if [ -z "$QTDIR" ]; then
51
+if [ -z "$TQTDIR" ]; then
52 52
 	if [ "$QC_DEBUG" = "Y" ]; then
53
-		echo \$QTDIR not set... trying to find Qt manually
53
+		echo \$TQTDIR not set... trying to find Qt manually
54 54
 	fi
55 55
 	for p in /usr/lib/tqt /usr/share/tqt /usr/share/tqt3 /usr/local/lib/tqt /usr/local/share/tqt /usr/lib/tqt3 /usr/local/lib/tqt3 /usr/lib/qt /usr/share/qt /usr/share/qt3 /usr/local/lib/qt /usr/local/share/qt /usr/lib/qt3 /usr/local/lib/qt3 /usr/lib64/tqt /usr/local/lib64/tqt /usr/lib64/tqt3 /usr/local/lib64/tqt3 /usr/lib64/qt /usr/local/lib64/qt /usr/lib64/qt3 /usr/local/lib64/qt3 /usr/X11R6/share/qt /usr/qt/3 ; do
56 56
 		if [ -d "$p/mkspecs" ]; then
57
-			QTDIR=$p
57
+			TQTDIR=$p
58 58
 			break;
59 59
 		fi;
60 60
 	done
61
-	if [ -z "$QTDIR" ]; then
61
+	if [ -z "$TQTDIR" ]; then
62 62
 		echo fail
63 63
 		echo
64
-		echo Unable to find Qt 'mkspecs'. Please set QTDIR
64
+		echo Unable to find Qt 'mkspecs'. Please set TQTDIR
65 65
 		echo manually. Perhaps you need to install Qt 3
66 66
 		echo development utilities. You may download them either
67 67
 		echo from the vendor of your operating system or from
@@ -71,9 +71,9 @@ if [ -z "$QTDIR" ]; then
71 71
 	fi
72 72
 fi
73 73
 
74
-if [ ! -x "$QTDIR/bin/tqmake" ]; then
74
+if [ ! -x "$TQTDIR/bin/tqmake" ]; then
75 75
 	if [ "$QC_DEBUG" = "Y" ]; then
76
-		echo Warning: tqmake not in \$QTDIR/bin/tqmake
76
+		echo Warning: tqmake not in \$TQTDIR/bin/tqmake
77 77
 		echo trying to find it in \$PATH
78 78
 	fi
79 79
 	qm=`type -p tqmake`
@@ -85,15 +85,15 @@ if [ ! -x "$QTDIR/bin/tqmake" ]; then
85 85
 		echo fail
86 86
 		echo
87 87
 		echo Sorry, you seem to have a very unusual setup,
88
-		echo or I missdetected \$QTDIR=$QTDIR
88
+		echo or I missdetected \$TQTDIR=$TQTDIR
89 89
 		echo
90
-		echo Please set \$QTDIR manually and make sure that
91
-		echo \$QTDIR/bin/tqmake exists.
90
+		echo Please set \$TQTDIR manually and make sure that
91
+		echo \$TQTDIR/bin/tqmake exists.
92 92
 		echo
93 93
 		exit 1;
94 94
 	fi
95 95
 else
96
-	qm=$QTDIR/bin/tqmake
96
+	qm=$TQTDIR/bin/tqmake
97 97
 fi
98 98
 
99 99
 gen_files() {
@@ -430,15 +430,15 @@ EOT
430 430
 }
431 431
 
432 432
 export PREFIX
433
-export QTDIR
433
+export TQTDIR
434 434
 rm -rf .qconftemp
435 435
 (
436 436
 	mkdir .qconftemp
437 437
 	gen_files .qconftemp
438 438
 	cd .qconftemp
439 439
 	$qm conf.pro >/dev/null
440
-	QTDIR=$QTDIR make clean >/dev/null 2>&1
441
-	QTDIR=$QTDIR make >../conf.log 2>&1
440
+	TQTDIR=$TQTDIR make clean >/dev/null 2>&1
441
+	TQTDIR=$TQTDIR make >../conf.log 2>&1
442 442
 )
443 443
 
444 444
 if [ "$?" != "0" ]; then
@@ -447,12 +447,12 @@ if [ "$?" != "0" ]; then
447 447
 	echo
448 448
 	echo "There was an error compiling 'conf'.  Be sure you have a proper"
449 449
 	echo "TQt 3.x Multithreaded (MT) build environment set up."
450
-	if [ ! -f "$QTDIR/lib/libtqt-mt.so.3" ]; then
451
-		if [ ! -f "$QTDIR/lib64/libtqt-mt.so.3" ]; then
450
+	if [ ! -f "$TQTDIR/lib/libtqt-mt.so.3" ]; then
451
+		if [ ! -f "$TQTDIR/lib64/libtqt-mt.so.3" ]; then
452 452
 			echo
453 453
 			echo "One possible reason is that you don't have"
454
-			echo "libtqt-mt.so.3 installed in $QTDIR/lib/"
455
-			echo "or $QTDIR/lib64/."
454
+			echo "libtqt-mt.so.3 installed in $TQTDIR/lib/"
455
+			echo "or $TQTDIR/lib64/."
456 456
 		fi
457 457
 	fi
458 458
 	echo
@@ -487,7 +487,7 @@ if [ "$?" != "0" ]; then
487 487
 	exit 1;
488 488
 fi
489 489
 cat >Makefile.tmp <<EOT
490
-export QTDIR = $QTDIR
490
+export TQTDIR = $TQTDIR
491 491
 EOT
492 492
 cat Makefile >> Makefile.tmp
493 493
 rm -f Makefile

Loading…
Cancel
Save